Top "Angular-router" questions

For the Angular Router service (@angular/router)

Reload a component with different route parameters in angular4

I am using angular2 routing. When the user re-enters the value in the search field and clicks on search, the …

angular angular-routing angular-router
Replace chunk name with module name in angular 4 lazy loading

I'm using angular-cli-1.6.3 for bundling my project. I try to rename lazy loaded chunk name into valid module name. But …

angular angular-router angular4-router angular-router-loader
Angular 2+: How to access active route outside router-outlet

I have an Angular 5 application. I have the following code in my app component. I want to hide navbar and …

angular angular-router
How to mock ActivatedRouteSnapshot when unit testing a Resolver

I want to write a unit test for my resolver, which needs to take ActivatedRouteSnapshot in its constructor like so: …

angular unit-testing angular-router
Is there a way to name a route in Angular 7?

I was wondering if there is a way to name my routes in Angular7 so I could just call [routerLink]="…

angular angular-router angular7
Activated Route URL Always Empty

Consider the following service, @Injectable() export class SagasService { constructor(private route : ActivatedRoute, private router : Router ){ router.events .filter(e => …

angular angular-router
Router infinite loop with second canActivate guard on lazy-loaded modules

I have an angular 4.3.6 application with lazy-loaded modules. Here is a partial root router: const routes: Routes = [ { path: '', redirectTo: …

angular lazy-loading angular-router angular-router-guards
Ionic 4 Angular 7 - passing object/data to another page

I would like to pass a JSON object to another page. What I've tried is to pass the JSON string …

ionic-framework angular7 angular-router ionic4
RouterLinkActive on children routes all false

I've the following children routes: { path: '', component: LoginSingupComponent, children: [ { path: 'login', component: LoginComponent }, { path: 'singup', component: SingupComponent }, ] }, Navigating to /…

angular angular-router
How to implement multi-level routing in Angular?

I'm working on a little project of mine in order to learn something more about Angular, but I really cannot …

angular angular-routing angular-router