我在angular中引用了antdesign,下面是我的项目结构,在app.component.html中写了<router-outlet>报错
后来发现是因为我在根组件路由模块文件中配置好路由,但是没有在app.module中引入这个路由模块
修改一下
在app.module.ts中引入appRoutingModule
可以复制下面的语句直接用
// route
import { AppRoutingModule } from './app-routing.module';
// route
AppRoutingModule
不报这个错了
菜鸟一枚,欢迎大神指点