1.

How To Get And Log An Error In Angular 4?

Answer»

Two types of ERROR:

  1. If the backend returned an UNSUCCESSFUL RESPONSE like – 404, 500 and so on.
  2. If something goes WRONG in the client side like -network error etc.

In the both CASES – We are using Http Error Response and return the useful information on what went wrong in this call!

Two types of error:

In the both cases – We are using Http Error Response and return the useful information on what went wrong in this call!



Discussion

No Comment Found