NullInjectorError
构造函数中,我添加了
standalone
参数:
AppComponent's
足以打破应用程序。它生成下面显示的运行时错误。我在论坛上看到了一个类似的问题,但没有任何令人满意的答案或解决方案。我想念什么吗? (该应用具有
RouterState
类,包括constructor(private routerState : RouterState) {
}
)
app.config.ts
您可以使用
provideRouter(routes)
的thert there