-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I deploy the application as the document [Using Angular with ZK] get the following error zkangular2/hero/index.zhtml
GET unpkg.com/@angular/[email protected]/bundles/common.umd.js/http 404 () systemjs.config.web.js:99 No AppModule; making a bare-bones, default AppModule zone.js:355 Unhandled Promise rejection: Template parse errors: 'router-outlet' is not a known element: 1. If 'router-outlet' is an Angular component, then verify that it is part of this module. 2. If 'router-outlet' is a Web Component then add 'CUSTOMELEMENTSSCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" Heroes </nav> [ERROR ->]<router-outlet></router-outlet> "): AppModule/AppComponent.html@6:4 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors: 'router-outlet' is not a known element: 1. If 'router-outlet' is an Angular component, then verify that it is part of this module. 2. If 'router-outlet' is a Web Component then add 'CUSTOMELEMENTSSCHEMA' to the
'@NgModule.schemas' of this component to suppress this message. ("
<a routerLink="/heroes" routerLinkActive="active">Heroes</a>
</nav>
[ERROR ->]<router-outlet></router-outlet>
"): AppModule/AppComponent.html@6:4
at syntaxError (compiler.es5.js:1699)
at TemplateParser.parse (compiler.es5.js:12940)
at JitCompiler._compileTemplate (compiler.es5.js:27138)
at eval (compiler.es5.js:27053)
at Set.forEach (<anonymous>)
at JitCompiler._compileComponents (compiler.es5.js:27053)
at eval (compiler.es5.js:26942)
at ZoneDelegate.invoke (zone.js:203)
at Zone.run (zone.js:96)
at zone.js:462 Error: Template parse errors:
'router-outlet' is not a known element:
If 'router-outlet' is an Angular component, then verify that it is part of this module.
Asked: 2017-10-02 22:43:14 +0800
Seen: 9 times
Last updated: Oct 03 '17