core.js:6162 ERROR NullInjectorError: R3InjectorError(AppModule)[HttpClient -> code example
Example: NullInjectorError: R3InjectorError HttpClient
// missing import on app.module.ts
import { HttpClientModule } from '@angular/common/http';
@NgModule({
imports: [
HttpClientModule
]