I am looking to detect a route change in my AppComponent.
AppComponent
Thereafter I will check the global user token to see if he is logged in. Then I can redirect t
Just make changes on AppRoutingModule like
@NgModule({ imports: [RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' })], exports: [RouterModule] })