@Doomkin wrote:
Dear fellow devs,
I’m trying to setup a global function that let me track user’s navigation though the pages of my app.
I would like to have one single file that handle everything, and I would like to NOT include a service in every page for it to work.Is there a way to setup a listener that listen for page changes at the start of my app instead of let’s say include a NavService in every page and execute the method this.nav.pageChanged() on every page’s ngOnInit() ?
Thanks!
Posts: 1
Participants: 1