Click here to Skip to main content
16,020,669 members

Comments by Member 14558413 (Top 2 by date)

Member 14558413 15-Aug-19 14:34pm View    
Where does this angular part go?

Do I add it a ts file?

Thanks


AbstractReadOnlyService.httpHeaders = new HttpHeaders().set('Content-Type', 'application/json');
AbstractReadOnlyService.httpHeaders = AbstractReadOnlyService.httpHeaders.set('Accept', 'application/json');

AbstractReadOnlyService.optionsStatic = {
headers: AbstractReadOnlyService.httpHeaders,
params: new HttpParams(),
withCredentials: true
};

//For GET
return this.httpClient.get(this.getWebApiServiceUrl('/applicationusers/userprofile'), { params: this.httpParams, withCredentials: true }) as Observable<userprofile>;

//For POST
return this.httpClient.post(url, firmDashboardSearchCriteria, AbstractReadOnlyService.optionsStatic).pipe(
map((response: any) => response as xxxxSearchResult[]),
catchError(this.handleError)
Member 14558413 15-Aug-19 14:33pm View    
My apologies Richard, I'm new to this community. Thanks for letting me know!