πŸ“Š Angular
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using HttpInterceptor to catch and handle errors

Explanation: HttpInterceptor allows centralized error handling for HTTP requests.

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate