Angular

Angular Error:

Property ‘http’ does not exist on type

Checklist-

  • import { HttpClient } from ‘@angular/common/http’; import is must in http
  •  constructor( private http: HttpClient
  • now you can use http in rest of component class

Leave a Reply

Your email address will not be published. Required fields are marked *