首先,我是Angular 2的新手,我试图设置新的项目,我希望用户登录,如果登录成功(这总是在我的情况下),那么用户应该重新路由到另一个零件。Angular2 base安装错误
这里是我的代码: https://github.com/tsingh38/Angular2Demo
我也触动了这里编译错误
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 ->]
"): [email protected]: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 ->]
并请建议我来说,这是定义流程的标准方式?
感谢
感谢这个我已经改编,但问题仍然存在 – Roxy
它是同样的错误吗? – domfx