I have a REST service in Angular which returns JSON response. I need to get the response as string to do some pattern matching and value replacement.
I am using Angular 7. Below is my service.
getUIData(): Observable<any> {
const url = `${this.baseUrl}/uiData`;
return this.http.get<any>(url).pipe(
catchError(this.handleError<any>('Get Data:'))
);
}
mapoperator.