Upgrading From Angular 4 To 7 Causing Some Problems
hey i have upgraded my project from angular 4 to angular 7 and some of the services, modules are deprecated. this is my app.module.ts @NgModule({ declarations: [AppComponent],
Solution 1:
You have to use new packge from @angular/common/http like
import { HttpClientModule } from"@angular/common/http";
import { HttpClient } from"@angular/common/http";
So mostly you will use HttpHeaders to construct your ajax header like params formdata etc...
Headers -> HttpHeaders
Response -> HttpResponse
RequestOptions, RequestOptionsArgs are remove and you have to use HttpParams
Please read new change log here
Post a Comment for "Upgrading From Angular 4 To 7 Causing Some Problems"