Listen for navigation events


#1

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?


Ionic - Global navigation change event
#2

@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


#3

Unfortunately I have not found a solution :\


#4

Found a solution. Look at this thread


#5

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