I have a container Component AdminComponent which has different childs:
{ path: ":company/admin", component: AdminComponent, children: [ { path: "", component: LoginComponent }, { path: "account", component: AccountComponent, canActivate: [RedirectGuard] }, { path: "detail", component: AdminlayoutsComponent, canActivate: [RedirectGuard] } ] } But my route subscription is only fired once and not on route change:
export class AdminComponent { constructor( private activatedRoute: ActivatedRoute ) { this.activatedRoute.params.subscribe((params: Params) => { console.log("####params", params); }); } } How can I trigger the route change event on every route change in my parent component?