更新时间:2023-01-23 20:01:13
你是 route
正在扩展路由器
!应该是,
App.PageRoute = Em.Route.extend({
model:function(params,transition ){
return App.Page.find(params.page_id);
}
});
更新小提琴这里。
I've created some random views with the latest transition stuff from ember and the outlets aren't rendering. It's saying it's transitioning, but nothings showing up in the output window. (Note this works if I completely remove the routes)
Here it is:
App.PageRoute = Em.Router.extend({
model: function(params, transition){
return App.Page.find(params.page_id);
}
});
Does it have to do with promises? Am I supposed to be returning a promise instead of the actual model?
You're route
is extending the Router
! It should be,
App.PageRoute = Em.Route.extend({
model: function(params, transition){
return App.Page.find(params.page_id);
}
});
Updated fiddle here.