angular - angular2 No provider for Http -
this question has answer here:
- angular 2 no provider http 12 answers
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
Post a Comment