在不同的路线中重复使用路线

时间:2013-05-08 07:42:38

标签: ember.js

我想在不同的路线中重复使用路线。 例如:

App.Router.map(function() {
    this.resource('routeA', function() {
        this.resource('routeAA');
    });
    this.resource('routeB', function() {
        this.resource('routeA', function() {
            this.resource('routeAA');
        });
    });
});

这不起作用,因为我认为第一个资源routeA在routeB中被覆盖。

我的推测是否正确? 有没有更好的方法来解决这个问题?

0 个答案:

没有答案