Top "Angular-router" questions

For the Angular Router service (@angular/router)

Angular 4 load data before initialize the application

I'm trying to load some data before my application starts. The reason why I need to do it, is because …

angular angular-router angular-router-guards
Angular 5 Cannot match any routes on named outlet of lazy loaded module

My Route of the Root Module is like this: RouterModule.forRoot([ { path: '', redirectTo: 'management-portal', pathMatch: 'full' }, { path: 'management-portal', loadChildren: …

angular angular-router routerlink router-outlet
Angular Service singleton constructor called multiple times

I am trying to use an app-wide service (UserService) that stores authenticated user details. I have set up some routes …

angular typescript angular-services angular-router angular-module
Hiding routes on url Angular 2+

So I am trying to hide my routes on the url, that means i want my app to show always …

angular angular-router
How to run a function when a route changes in angular?

I want to change a certain heading according to the current url in Angular. So component.ts looks like this: …

angular routing angular-router
Angular 7.x.x easiest way to scroll to a fragment?

In the past two days i've been diggin through the internetz about scrolling a fragment into view with angular. Let's …

typescript scroll angular7 angular-router angular-routerlink
How to navigate between pages in ionic 4 & 5?

I had a project that I developed with ionic 3. But I took a break and when I started working again …

ionic4 angular-router pass-data navparams ion-nav
Angular 6 - RouterLink navigates but not changing URL

app.component.html <nav> <a routerLink="/dashboard"></a> <a routerLink="/reports"></…

angular angular-cli angular-router routelink
Custom RouteReuseStrategy for Angular's child module

I want to use this custom route reuse strategy for just one module: export class CustomRouteReuseStrategy extends RouteReuseStrategy { public shouldDetach(…

angular angular-routing angular-module angular-router
Angular detect route change only when navigating to a different component

I am trying to do something upon route change (i.e scroll to top) only when navigating to a different …

angular angular-router