📜  错误 NullInjectorError: R3InjectorError(t)[t -> t -> t -> t]: NullInjectorError: No provider for t! - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:05.403000             🧑  作者: Mango

代码示例1
You are trying to use a service that is not listed 
in providers of your AppModule. 
Add the service to a providers list to make it work.
To find which is missing run this command:
ng serve --prod --optimization=false