Request mydomain/request returns json string like "accepted" or "declined"
I would use request in angular to get this string :
getStatus(jobOfferId): Promise<string> {
const url = "someurl";
return this.httpClientService.get(url)
.toPromise()
.then(response => response as string);
}
This would work in angular 2, but I've just upgraded to angular 4 and this request returns an error instead
"Http failure during parsing for https://mydomain/request"
"