Loading…

How to get and Log an error in Angular 4?Explain

There are two types of errors in Angular 4.
  • Background returns an unsuccessful response such as 500, 404 and so on.
  • Client-side errors such as network error, etc.

In both cases, we use HttpErrorResponse and return the crucial information on what went wrong with the call.

Suggest An Answer

No suggestions avaliable!

Latest post from Angular 4 Interview Questions

Ask Question