Skip to content

Dependency Injection #7

@nitingarg-81

Description

@nitingarg-81

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions