So I have the following observable:

return this.http.get(*url*)
    .map((res:Response) => {
        this.data = res.text();
        return [res.text()];
    })
    .catch((error:any) =>
    Observable.throw('Server error')
    );


I have the following style catch because I want the other observables that come 
after this one to continue.

However I want to take note of the returns other 200 from the get call.

I try to do a console.log in the catch block but I get a syntax error. Why?

Also so where can get to inspect the return response from the get call?

-- 
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.

Reply via email to