resetController (controller, isExiting, transition) public
A hook you can use to reset controller values either when the model changes or the route is exiting.
App.ArticlesRoute = Ember.Route.extend({ // ... resetController: function(controller, isExiting, transition) { if (isExiting) { controller.set('page', 1); } } });
Parameters:
-
controller
Controller
- instance
-
isExiting
Boolean
-
transition
Object
Please login to continue.