Angular - RxJS Operators
What will be the output of this Angular RxJS code?
import { of, throwError } from 'rxjs';
import { catchError } from 'rxjs/operators';
const source$ = throwError(() => new Error('Fail'));
source$.pipe(
catchError(() => of('Recovered'))
).subscribe(value => console.log(value));