angular - angular2 No provider for Http -


this question has answer here:

import {http, http_providers} '@angular/http'; 

when use http error "no provider http",

then import http_providers http_providers has no exported member

i have created plunker on inserting http. read more http module

import {httpclientmodule} '@angular/common/http';  @ngmodule({  imports: [ browsermodule, httpclientmodule ],  declarations: [ app ],  bootstrap: [ app ] }) export class appmodule {} 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -