I am using Angular Service to get data from my API. I implemented retry feature in case of fetching data fails. Now i need to handle the error when all the retr
API
Have you tried retry(10)? Then in the second subscribe callback you can handle the error:
retry(10)
return this.http.get(callURL,{ params: new HttpParams() .set('page', page) .set('limit', limit) }).pipe( retry(10) ).subscribe((res) => {}, (e) => { // handle error });