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.

Angular 2 - replace history instead of pushing

How to replace a history instead a pushing a new in angular 2's new router (rc.1)? For example Im in …

angular typescript angular2-routing
How do I navigate to a sibling route?

Let's presume I got this router config export const EmployeeRoutes = [ { path: 'sales', component: SalesComponent }, { path: 'contacts', component: ContactsComponent } ]; and have …

angular angular2-routing angular2-router
"No provider for AuthGuard!" using CanActivate in Angular 2

EDIT : Obviously this is outdated, now you provide your guard at the providers array in an NgModule. Watch other answers …

authentication angular angular2-routing
Can't reload/refresh active route

I have recently updated to the new RC3 and Router3alpha and it seems some things have changed. I noticed …

angular angular2-routing angular2-router3
Angular2 router: how to correctly load children modules with their own routing rules

here is my Angular2 app structure: Here is part of my code. The following is the main module of the …

angular url-routing angular2-routing nested-routes angular2-modules
How can I improve load performance of Angular2 apps?

Angular2 app is loading slow, how can I improve the performance on load? I use Angular2, typescript with html5. currently …

javascript performance angular angular2-routing systemjs
how to change page title in angular2 router

I am trying to change the page title from the router, can this be done? import {RouteConfig} from 'angular2/router'; @…

typescript angular angular2-routing
How to get current route custom data in angular 2?

I have set up routes is like below const appRoutes: Routes = [ { path: 'login', component: LoginComponent, data: { title: 'Login TTX' } }, { path: …

angular angular2-routing
Hide elements based on routing in Angular2 rc1

I have some elements I want on every page except the login page. I'd like to use ngIf or possibly …

typescript angular angular2-routing angular2-template
Angular 2 Routing Does Not Work When Deployed to Http Server

I am going to develop a simple Angular 2 application. I have created a project with routing, using Angular CLI and …

angular npm angular2-routing angular-cli angular2-template