I am starting a new angular project with the CLI and am running into a no provider for HttpClient error.
HttpClient
I have added HttpClientModule to m
HttpClientModule
An easier way is to provide it globally....Import the following into app.module.ts like so:
import { HttpModule } from '@angular/http' import { HttpClient, HttpClientModule } from '@angular/common/http';
and declare it in imports:
imports: [ HttpModule, HttpClientModule, ... ]