Listen for navigation events

Hi,

in ionic1 using UIRouter we could listen to state change events and act accordingly (check for auth, send analytics, log stuff etc). In Ionic2 I haven’t found a centralised way to check when navigation happens in order to intercept it and do things like analytics, logging etc.
What do you recommend?

@mxa055 I’m looking for the same thing for auth purposes. Have you found a solution?

FYI, I found this related question but there are no responses there yet either unfortunately:

https://forum.ionicframework.com/t/ionic2-global-navigation-change-event/51537

Unfortunately I have not found a solution :\

Found a solution. Look at this thread

Thanks for updating this thread as well. I commented on the referenced thread regarding your solution.