Answers for "ERROR NullInjectorError: R3InjectorError(AppModule)[SharedService -> HttpClient -> HttpClient -> HttpClient]:"

8

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

Code answers related to "ERROR NullInjectorError: R3InjectorError(AppModule)[SharedService -> HttpClient -> HttpClient -> HttpClient]:"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language