A

Admin • 828.03K Points
Coach

Q. How do you handle errors globally in Angular HTTP requests?

  • (A) Using HttpInterceptor to catch and handle errors
  • (B) Using ngIf directive
  • (C) Using reactive forms
  • (D) Using ngOnInit hook
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
HttpInterceptor allows centralized error handling for HTTP requests.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.