<https://lh3.googleusercontent.com/-EgM3cR51Ofw/Wb-glOjYXQI/AAAAAAAAAq0/zu5HY686wfAAJDOtqkEVA7Ps77QnfuRqgCLcBGAs/s1600/Screen%2BShot%2B2017-09-18%2Bat%2B2.59.36%2BPM.png>
i think we should not convert response to json because remove header values
On Monday, September 18, 2017 at 2:34:48 PM UTC+4:30, Sander Elias wrote:
>
> H Mohammad,
>
> For test, replace this:
> return this.http.get(`${this.BASE_URL}/articles.json?limit=${limit}`,this.
> getHeader)
> .map((response: Response) => {
>
> with:
> return this.http.get(
> `${this.BASE_URL}/articles.json?limit=${limit}`,this.getHeader)
> .do((r:response)=> console.log('ok',r.json())
> .catch(err => {console.error(err); throw new Error(err)})
> .map((response: Response) => {
>
> It will log out both, success and failure path.
>
> Regards
> Sander
>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.