Error: StaticInjectorError(AppModule)[ -> Http]: StaticInjectorError(Platform: core)[ -> Http]: NullInjectorError: No provider for Http!

Solution:- Add the following code in app.module.ts

import {HttpModule} from ‘@angular/http’;

imports:[HttpClientModule, HttpModule

Add Comment