In the last lecture we learned how to handle HTTP errors using a subject. In this lecture, we will talk about another way to handle HTTP errors i.e. by using an RxJS operator. The operator which we will use is catchError.
RxJS catchError() operator is an error-handling operator used to handle and take care of catching errors on the source observable by returning a new observable or an error. In other words, we can say that the RxJS catchError() operator catches errors on the observable and gracefully handles errors in an observable sequence. It handles the errors by returning a new observable or throwing an error.
DOWNLOAD STARTUP FILES FOR THIS SECTION HERE: https://github.com/manojjha86/angular...
DOWNLOAD FINAL COMPLETE FILES FOR THIS SECTION HERE: https://github.com/manojjha86/angular...