我正在努力处理动态的细分市场。这里是我的代码没有emberdata的动态细分市场
App.Router.map(function(){
this.resource('stuff', {path: '/stuff/:stuff_id'}, function() {
this.route('make');
this.route('edit');
this.route('delete');
this.route('history');
});
});
App.StuffRoute = Ember.Route.extend({
model: function(param) {
},
setupController: function(){
},
renderTemplate: function() {
}
});
App.StuffView= Ember.View.extend({
defaultTemplate: Ember.Handlebars.compile(stuffTemplate)
});
App.StuffController = Ember.Controller.extend();
我应该把什么在StaffRoute
,我停止获取No route matched the URL 'crisis'
错误的模型?对于localhost/#stuff
以及如何正确设置动态段部分?我唯一的问题是,所有的例子都使用了不支持生产的ember-data,我不想使用它。