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.

Angular2 canActivate() calling async function

I am trying to use Angular2 router guards to restrict access to some pages in my app. I am using …

typescript angular angular2-routing
Unexpected value 'undefined' declared by the module 'AppModule'

What is wrong here? I'm trying to make it work but I get that error in the header. I have …

angular angular2-routing
TypeError: Cannot create property 'validator' on string '[email protected]' at setUpControl

I face issue in formGroup. First Based on URL I take some value and call to API for retrieve particular …

javascript angular angular2-routing angular2-template angular2-forms
How to send a value from one component to another?

I make a componenet in which I have one input field and button.On click of button I am diplaying …

angular angular2-routing angular2-template angular2-directives
Relative links/partial routes with routerLink

In my app some URLs take the form /department/:dep/employee/:emp/contacts In my sidebar I show a list …

angular angular2-routing
Angular2 router keep query string

I wrote an Angular2 (v2.0.1) application that makes use of the router. The website is loaded with several query string …

angular angular2-routing
Angular 2 unit testing components with routerLink

I am trying to test my component with angular 2 final, but I get an error because the component uses the …

angular typescript angular2-routing angular2-testing
RangeError: Maximum call stack size exceeded Lazy routing Angular 2

I'm trying to implement lazy routing into my app. I have a very big project and when it was at …

angular typescript angular2-routing
Angular 2: getting RouteParams from parent component

How do I get the RouteParams from a parent component? App.ts: @Component({ ... }) @RouteConfig([ {path: '/', component: HomeComponent, as: …

angular angular2-routing
EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/home/home.module'

I'm trying to lazy load Angular 2 modules with the router, and I'm having this error: error_handler.js:50 EXCEPTION: Uncaught (…

angular lazy-loading angular2-routing angular-cli webpack-dev-server