Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. import { NgForm } from '@angular/forms';
  2. import { DatePipe } from '@angular/common';
  3. import { HttpClient, HttpHeaders } from '@angular/common/http';
  4.  
  5. @Component({
  6. selector: 'plugin-a-component',
  7. templateUrl: './plugin-a.component.html'
  8. })
  9. export class PluginAComponent {
  10. public myForm: NgForm;
  11.  
  12. constructor(private datePipe: DatePipe) { }
  13. }
  14.  
  15. ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[PluginAComponent -> DatePipe]:
  16. StaticInjectorError(Platform: core)[PluginAComponent -> DatePipe]:
  17. NullInjectorError: No provider for DatePipe!
  18. Error: StaticInjectorError(AppModule)[PluginAComponent -> DatePipe]:
  19. StaticInjectorError(Platform: core)[PluginAComponent -> DatePipe]:
  20. NullInjectorError: No provider for DatePipe!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement