Answers for "main.ts:12 NullInjectorError: R3InjectorError(AppModule)[EmployeeService -> HttpClient -> HttpClient -> HttpClient]:"

7

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,  ]
Posted by: Guest on July-20-2020
9

NullInjectorError: No provider for HttpClient!

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

Code answers related to "main.ts:12 NullInjectorError: R3InjectorError(AppModule)[EmployeeService -> HttpClient -> HttpClient -> HttpClient]:"

Code answers related to "Javascript"

Browse Popular Code Answers by Language