this.controller is undefined in Route class. If you want to set properties on the controller, you should use the setupController hook:
1 2 3 4 5 6 7 |
model: function(params) { return {"name" : "task"}; }, setupController: function(controller, task) { controller.set('currentTask',task); } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.