Per "ASP.NET Core 2 and Angular 5" by Valerio De Sanctis one must have HttpClientModule in the imports metadata property in app.module.shared.ts in a canned Visual Studio Angular 5 application to use HttpClient. Import it like so:
import { HttpClientModule } from "@angular/common/http";
No comments:
Post a Comment