ember.js - EmberRoute renderTemplate: with model: -
I'm trying a custom amber root, like the following:
App ResultRoute = Ember.Route.extend ({renderTemplate: function (controller, model) {warning}; this.render ('result / main', {outlet: 'content', controller: controller});}, model: function (Parameters) {return.get ('store'). (Find 'results', parameters.id) then (function (result) {returns result;}}}}}} However, looks like RenderTapplate: Model does not like: Second Sh In these cases, I can get directly into the Render Tumblr when I reach the route, but when I try to apply the model in this way it does not work.
How to do this task?
Thanks,
I think, you then Should not be used: model: functions (parameters) {return.get ('store'). Results, parameters; id); } The search method returns a wired object that is used by the amber routing process.
I will also suggest giving the amber render template based on its default.
In your case, App.ResultController must expand the Ember.ObjectController. If you follow conventions, you should not generally implement this method in your own way.
Comments
Post a Comment