Answers for "how to convert http request to object angualr"

0

how to convert http request to object angualr

export class SomeService {
    constructor(private http: HttpClient) {}  // <--- NOTE: HttpClient instead of Http

    getSome(): Observable<MyAwesomeObject> {
        return this.http.get<MyAwesomeObject>('myUrl');
    }
}
Posted by: Guest on April-22-2020

Code answers related to "how to convert http request to object angualr"

Browse Popular Code Answers by Language