no httpclient no provider code example
Example 1: No provider for HttpClient!
import { HttpClientModule } from '@angular/common/http';
Example 2: No provider for HttpClient!
import { HttpModule } from '@angular/http';
import { HttpClientModule, HttpClient } from '@angular/common/http';
.
.
.
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
HttpModule,
BrowserAnimationsModule,
FormsModule,
AppRoutingModule,
.
.
.