jnwltr / swagger-angular-generator

Generator of API layer in TypeScript for Angular 2+ apps
MIT License
91 stars 46 forks source link

demo error: 'router-outlet' is not a known element: #117

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

Steps to reproduce:

  1. cd demo-app/client
  2. npm install
  3. npm run start
  4. open http://localhost:4200/
  5. page is blank; js console shows:
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 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR ->]<router-outlet></router-outlet>
"): ng:///AppModule/AppComponent.html@0:0
jayvdb commented 4 years ago

Normally a src/app/app-routing.module.ts is needed, or the routes included in app.module, but I dont see them in the demo.