angular No provider for HttpClient
// open the root app.module.ts,
import { HttpClientModule } from '@angular/common/http';
// add it to the @NgModule.imports array.
imports:[HttpClientModule, ]
angular No provider for HttpClient
// open the root app.module.ts,
import { HttpClientModule } from '@angular/common/http';
// add it to the @NgModule.imports array.
imports:[HttpClientModule, ]
NullInjectorError: No provider for HttpClient!
@NgModule({
...
imports:[ HttpClientModule ]
...
})
No provider for HttpClient!
import { HttpClientModule } from '@angular/common/http';
No provider for HttpClient!
import { HttpModule } from '@angular/http';
import { HttpClientModule, HttpClient } from '@angular/common/http';
.
.
.
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
HttpModule,
BrowserAnimationsModule,
FormsModule,
AppRoutingModule,
.
.
.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us