Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70764

Ionic with Angular 5 and new HttpClient

$
0
0

@Philipp_Websteps wrote:

Hi,
I discovered a big problem.
With the new HttpClient, you can get full response only if you use in the options {observe: ‘response’}. That’s ok and works good. But if you want to build your application, I get a typescript error, because typescript doesn’t know that it gets a full response and can’t find the property status on the response.

I’ve written a HttpService my own, which handles many things and one function named getOptions which return the options object dynamically and therefore typescript doesn’t know what comes back from the http method. So I can’t build my app anymore and I’m not up to insert everywhere statically. (which didn’t work either for me). For different status codes, I have different things to do.
I hope, someone can help me or one man of the Ionic team sees it.
And yes, I know it’s basically an angular problem.
Best wishes, Philipp

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 70764

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>