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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -