First of all i am new to Angular 2 and i am trying to setup new project where i want user to login and if login is successful (which is always in my case) then user should be rerouted to another component.
Here is my code: https://github.com/tsingh38/Angular2Demo
I am also struck with compilation error here
zone.js:355Unhandled Promise rejection: Template parse errors: 'navigation' is not a known element: 1. If 'navigation' is an Angular component, then verify that it is part of this module. 2. If 'navigation' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. (" [ERROR ->]
"): SiteComponent@5:0 ; Zone: ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors: 'navigation' is not a known element: 1. If 'navigation' is an Angular component, then verify that it is part of this module. 2. If 'navigation' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. (" [ERROR ->]
And please suggest me, is this the standard way of defining the flow ?
Thanks