showing results for - "angular return observable with error"
Alice
08 Jul 2019
1import { throwError } from 'rxjs';
2
3// ...
4method(): Observable<SomeClass> {
5  // ...
6  // from the 
7  if (failedCondition) {
8    return throwError('');
9  }
10  // ...
11}
12