Top "Angular-router" questions

For the Angular Router service (@angular/router)

How to implement RouteReuseStrategy shouldDetach for specific routes in Angular 2

I have an Angular 2 module in which I have implemented routing and would like the states stored when navigating. The …

javascript angular typescript angular-router
Angular Passing Data Between Routes

I have a little problem using routes in angular 4. You know, when I am trying to pass data from a …

angular angular-router
Angular 4 - Pass an object from one component to another (no parent - child hierarchy)

My situation: I have a component showing tiles with each tile representing an object from an array that is looped …

angular angular-components angular-router
How do you mock ActivatedRoute

I'm learning Angular and I want to do tests, but I'm stuck. I've got a function: ngOnInit(): void { this.route.…

angular unit-testing angular-router
Router navigate to child route - Angular 6

I've defined my routes like this: const routes: Routes = [ { path: '', loadChildren: './tabs/tabs.module#TabsPageModule' }, { path: 'faq', loadChildren: …

angular angular6 angular-router angular-routerlink
Routing With ID in Angular 4

I need help in my routing in Angular 4. I want to display the URL like this. Localhost:4200/user/1 if i …

angular angular2-routing angular-router
Angular 6 - Get current route and it's data

How do you able to get current route you're in and get's it's data, children and it's parent? say if …

angular6 angular-router angular-activatedroute
RouterLink with multiple params in Angular

I want to create a link to the route with multiple parameters and bind them in tempalte. Until now, I've …

angular router angular-routing angular-router angular-routerlink
Angular : Error: Uncaught (in promise) at webpackAsyncContext (eval at ./src/$$_lazy_route_resource

I'm upgrading from Angular 4.0.0 to Angular 5.2.6 i'm facing some problem to get lazy module loading working. with angular 4.0.0 , it works …

javascript angular lazy-loading angular-routing angular-router
Angular 2 Routing navigate run in new tab(Use Angular Router naviagte )

How to open a new browser Tab , if using router.navigate . this.router.navigate([]).then(result => { window.location.href = …

angular angular-routing angular-router