Sunday, 15 March 2015

javascript - Pass 'content' from ArrayController to another Route/Controller -



javascript - Pass 'content' from ArrayController to another Route/Controller -

what right pattern pass 'content' 1 arraycontroller (route) controller (route)? , create available in 3rd controller?

inside controller/route, controllers available. can accessed via controllerfor. so, there no need pass properties of 1 controller one.

inside 1 controller, content of controller can accessed this: var samplecontent = this.controllerfor('samplearray').get('content');

http://emberjs.com/api/classes/ember.route.html#method_controllerfor

javascript ember.js

No comments:

Post a Comment