No provider for HttpClient!

PHOTO EMBED

Thu Sep 22 2022 13:57:05 GMT+0000 (UTC)

Saved by @dubisi #angular

To make HttpClient available everywhere in the app,

open the root AppModule,

import the HttpClientModule from @angular/common/http,

import { HttpClientModule } from '@angular/common/http';

add it to the @NgModule.imports array.

imports:[HttpClientModule,  ]
content_copyCOPY