Top "Angular2-routing" questions

Angular Routing is a built-in feature that enables you to create a Single Page Application (SPA) user interface, where users can navigate to different views without having to reload the entire page from the server every time.

How to give correct path names for loadchildren in lazy loading angular 2 NgModule?

How to give correct path names for loadchildren in app-routing.module file in the angular 2 ngmodule, I followed the ngmodule …

angular angular2-routing angular2-ngmodel
How to trigger route resolver manually

I'm resolving a user before accessing the account fragment of my user page : app-routing.component.ts { path: 'users/:id', component: …

angular angular2-routing resolver
Prevent routerLink action in Angular 2

I have a link: <a routerLink="/test" (click)="testClick($event)">Test link </a> I wanted to …

angular2-routing angular4-router
How to pass 2 parameters from routerLink?

I am trying to pass 2 parameters through the routerLink, to my component and then to my service to get the …

angular angular2-routing routerlink
Switch and persist selected tab of ng2-bootstrap <tabset>, <tab> using Angular router

I have a component showing tabs using ng2-bootstrap tabset and tab. Example: <tabset> <tab heading="Info" […

angular angular2-routing ng2-bootstrap angular2-router
Using a base guard for all routes in Angular 2 application

Is there a way to set a "base" canActivate when configuring routes in Angular2? So that all routes are covered …

angular angular2-routing angular2-guards
Getting "No provider error" when using CanActivate guard

This is the guard: // my.guard.ts import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angular/…

angular angular2-routing angular2-guards
Configure history.pushState for Angular 2

My Angular 2 application uses the default HTML 5 history.pushState location strategy. How do I configure a server with history.pushState …

angular angular2-routing angular2-cli
Angular 2 Header component Title change dynamically according to the state

I have a design using angular 2 where header component, navigation bar component and body component where all other components load. …

angular angular2-routing angular2-services angular2-components ngcomponentrouter
In Angular, how I navigate directly to a path inside a lazy loaded module?

I would like to have two top level paths for logging in and registering. I would prefer not having to …

angular routing angular2-routing angular2-router