How to handle and retry the failed request due to poor network connection in angular 4?
Answer / Rahul Kumar Rai
To handle failed requests due to a poor network connection in Angular 4, you can implement a retry mechanism using observables. Wrap your HTTP calls inside an Observable and use the catchError operator to create a new Observable that will be executed when an error occurs. Inside this catchError Observable, retry the request after a delay or handle the error according to your needs.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain order by filter?
What is eventemitter angular2?
What is lazy loading and why is it used for angular?
What is directive in angularjs?
What is an impure pipe?
How would you control size of an element on resize of the window in a component?
What do you mean by module?
What is registering callbacks in angularjs?
What is a module and what does it contain?
What is typings in angular 2?
What is $location in angularjs?
What is isolated scope in angularjs?