Answers for "No provider for HttpClientInjector!"

9

NullInjectorError: No provider for HttpClient!

@NgModule({
...
imports:[ HttpClientModule ]
...
})
Posted by: Guest on May-31-2020
0

No provider for HttpClient!

import { HttpModule } from '@angular/http';
import { HttpClientModule, HttpClient } from '@angular/common/http';
.
.
.
@NgModule({
    imports: [
        BrowserModule,
        HttpClientModule,
        HttpModule,
        BrowserAnimationsModule,
        FormsModule,
        AppRoutingModule,
.
.
.
Posted by: Guest on May-25-2021

Code answers related to "No provider for HttpClientInjector!"

Code answers related to "Javascript"

Browse Popular Code Answers by Language