如何在角度6中将组件添加到另一个组件中

时间:2020-04-08 22:09:22

标签: angular angular6 angular-providers

enter image description here这是代码的结构。我正在尝试将视频播放器组件添加到我的课程组件中。 然后我得到例外。

错误错误:未捕获(承诺):错误:StaticInjectorError(AppModule)[VideoPlayerComponent-> Modal $$ 1]: StaticInjectorError(平台:核心)[VideoPlayerComponent-> Modal $$ 1]: NullInjectorError:没有用于Modal $$ 1的提供程序! 错误:StaticInjectorError(AppModule)[VideoPlayerComponent-> Modal $$ 1]: StaticInjectorError(平台:核心)[VideoPlayerComponent-> Modal $$ 1]:

0 个答案:

没有答案
相关问题