πŸ“Š Angular
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using HTTP Interceptors

Explanation: Interceptors can handle HTTP requests/responses and errors globally.

Explanation by: Mr. Dubey
Interceptors can handle HTTP requests/responses and errors globally.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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