I have an issue where my component is re-initializing when I route to it with new parameters. Here are my routes.
const appRoutes: Routes = [ { path: \'\'
I used a different approach, listening to the Activated route in my Component
import { ActivatedRoute } from '@angular/router'; constructor( private route: ActivatedRoute ) { this.route.url.subscribe(url =>{ /* Your function*/ }); }