I install isActive in setupController:
App.EntryRoute = Ember.Route.extend setupController: (controller) -> controller.set('isActive', true)
I want to delete it when the route is changed.
What is the best way to do this? Are there hooks for when the controller is removed?
Edit: It seems I asked the wrong thing. I want to call this when the model is changed, which means that deactivate will not work, because it changes only after exiting the route.
source share