-3

实现路由后,我遇到了错误can't GET / in Angular。

4

1 回答 1

0

在 app-route.module.ts 中,不要在主目录中留出空间。例如 :: { path: '', component: AngularComponent },

在 navbar.component.html 中,执行以下操作

于 2020-07-23T03:45:20.490 回答