Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49253

Ionic 4 global method

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49253

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>