Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

ngOnInit does not run when using router to access page

$
0
0

@rohankapurmobile wrote:

So when I first load a specific page, everything is fine and dandy. All the functions in the ngOnInit lifecycle hook run well. However, if i navigate to a page using the angular router, specifically the navigateByUrl Function, ngOnInit does not fire.

Is there another function I can use that will fire every single time I open a page, regardless if i’ve opened it before or whether I’m using the angular router to access it?

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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