Home > Blockchain >  Why does my angular routing shows blank page?
Why does my angular routing shows blank page?

Time:01-06

app-module [enter image description here][1] app-routing [enter image description here][2] browser [enter image description here][3] [1]: https://i.stack.imgur.com/RSfRA.png [2]: https://i.stack.imgur.com/cKcsw.png [3]: https://i.stack.imgur.com/sUO2X.png

CodePudding user response:

Are you using router outlet in html?

< router-outlet ></ router-outlet >

CodePudding user response:

Make sure you are using <router-outlet></router-outlet> in your *.component.html where you want your routed components to be displayed.

Also double check if you're importing RouterModule in your app-module.ts or app-routing.module.ts (depending where are your routes set up)

CodePudding user response:

Think you have not imported the router module .Try importing routermodule to your app module.ts and use the < router-outlet ></ router-outlet > in your html page .Think you have not imported the router module

  •  Tags:  
  • Related