首先,我是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