I wrote the following code in Angular 2:
this.http.request(\'http://thecatapi.com/api/images/get?format=html&results_per_page=10\'). subscribe((re
Can't you just refer to the _body object directly? Apparently it doesn't return any errors if used this way.
_body
this.http.get('https://thecatapi.com/api/images/get?format=html&results_per_page=10') .map(res => res) .subscribe(res => { this.data = res._body; });
Working plunker