Scratching my head on this error. 'Error: No provider for HttpParams!' Migrating from Http to HttpClient. Imported HttpClientModule in app.module.ts and made it a member in @NgModule -> imports
There is still an import for HttpModule in app.module.ts. Can it be clashing with the new HttpClientModule?
In my service I have:
import {HttpClient, HttpHeaders, HttpParams} from "@angular/common/http";
Can someone please enlighten me as to why this is happening? TIA, Pedro.
HttpParamsin your constructor? Perhaps you are injectingHttpParamsinstead ofHttpClient- LLailet params = new HttpParams().append('myParam', 'myValue');- LLai