I'm encountering an issue where the ngOnInit is not firing when returning to a page using the Angular router navigate.
//this fires and goes to the /test/parent-route
this.router.navigate(['/test/parent-route']
however the ngOnInit does not fire in the component of parent-route. The component loads, but ngOnInit does not trigger.
Can you post more code? You wrote
ngOninitinstead ofngOnInit. To make sure you're calling the correct method addimplements OnInitto your component (add OnInit in import from @angular/core)