Cannot match any routes

后端 未结 5 680
陌清茗
陌清茗 2021-01-07 17:52

My component shows up but i get an error message when the page is loaded. I can\'t seem to solve the error message at all after looking at a bunch of resources.

Erro

5条回答
  •  天涯浪人
    2021-01-07 18:23

    plz make sure tag in your head tag and you can use useAsDefault: true attr like this :

    @Routes([
        {path: '/login', component: LoginComponent,useAsDefault: true}
    ])
    

提交回复
热议问题