Angular 4 and Ionic 3 No provider for HTTP
I have a service which imports Http, and when I use it in my app it throws error. " No provider for Http! Error at g injectionError ". I am lazyloading the app. Also the provider was generated through cli " ionic g provider ... " complaint-service.ts import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import 'rxjs/add/operator/map'; @Injectable() export class ComplaintService { private complaints: {subject: string, description: string}[] = []; constructor(public http: Http) { this.http = http; this.complaints = null; console.log('Hello ComplaintService Provider');