Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { NgForm } from '@angular/forms';
- import { DatePipe } from '@angular/common';
- import { HttpClient, HttpHeaders } from '@angular/common/http';
- @Component({
- selector: 'plugin-a-component',
- templateUrl: './plugin-a.component.html'
- })
- export class PluginAComponent {
- public myForm: NgForm;
- 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!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement