Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ember hook when transitioning from child route to parent route

Tags:

ember.js

So I'm inside of an Ember child route, attendee.search.

And I have a button there than transitions back to attendee.index.

I need to reset the content of the attendee list when the transition occurs, but neither setupController, model, nor redirect are called when going from a child route to its parent.

How can I run a function every time a user lands on the attendee route?

like image 566
alt Avatar asked Jan 12 '23 07:01

alt


1 Answers

Use the deactivate hook on App.AttendeeSearchRoute.

like image 77
chopper Avatar answered May 22 '23 23:05

chopper