Angular - HTTP Client
You want to show a friendly message to users when an HTTP error occurs, but still log the original error for debugging. Which code snippet correctly implements this in Angular?
throwError(() => err) to pass the error downstream for further handling.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions