1
我正在試圖圍繞transitionTo在ember中調用的事件序列進行打包。路由轉換的事件序列To calls
我的路由器看起來如下:
App.Router.map(function() {
this.resource('store', {path: 'store/:store_id'} , function(){
this.route("index", { path: "/" });
this.resource('client', function(){
this.route("signout");
});
});
});
在登出我清除一切,然後transitionTo回store.index但是當我這樣做沒有被刷新,並沒有模型,也不StoreIndexRoute的setupController鉤被召回。
讓StoreIndexRoute自行重置的最佳方式是什麼?
此外,解釋這些事件序列的任何資源都會很棒。