如果我有一个像这样有 3 个状态的路由管理器
App.routeManager = Ember.RouteManager.create({
rootElement: '#tabContent',
initialState: 'test1',
test1: Ember.ViewState.create({
route: 'test1',
view: Ember.View.extend({
defaultTemplate: Ember.Handlebars.compile('test1')
})
}),
test2: Ember.ViewState.create({
route: 'test2',
view: Ember.View.extend({
defaultTemplate: Ember.Handlebars.compile('test2')
})
}),
test3: Ember.ViewState.create({
route: 'test3',
enter: function (manager, transition) {
var careView;
require(['require', 'test3'], function (require) {
test3View= require('test3');
});
this.set('view', test3View);
},
exit: function(){
this._super();
}
});
我如何确定它在退出事件中的下一个状态?