In my route.js
file, I use the activate()
method to initiate something.
In the template associated with this route, I have an input that makes it possible to navigate to the same route but with a different object ID.
I use router.transitionTo
like so
get(this, 'router').transitionTo('route', objectId);
But this transition does not trigger the activate()
method.
Now the doc says
This hook is executed when the router enters the route. It is not executed when the model for the route changes.
I guess this is why it’s not working (I am staying on the same route, simply using a new model).
Is there a way around this? How can I make sure that the activate()
method gets call in my use case?
1 post - 1 participant