A

Admin • 832.27K Points
Coach

Q. How do you catch HTTP errors globally in Angular?

  • (A) Using HTTP Interceptors
  • (B) Using try-catch blocks in components
  • (C) Using Angular Guards
  • (D) Using event binding
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

Interceptors can handle HTTP requests/responses and errors globally.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.