Dependency Injection
nitingarg-81 opened this issue · comments
I am trying to use DatePipe in the Plugin Component but getting Error, Am I missing somthing here?
constructor(private datePipe: DatePipe) { }
ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[PluginAComponent -> DatePipe]:
StaticInjectorError(Platform: core)[PluginAComponent -> DatePipe]:
NullInjectorError: No provider for DatePipe!
Error: StaticInjectorError(AppModule)[PluginAComponent -> DatePipe]:
StaticInjectorError(Platform: core)[PluginAComponent -> DatePipe]:
NullInjectorError: No provider for DatePipe!