How to handle error in a Resolver

前端 未结 3 1915
旧巷少年郎
旧巷少年郎 2021-01-30 10:46

I\'m trying to use resolvers in order to make a better UX. Everything works great on the happy path. What I can\'t seem to figure out is how to handle exceptions. My resolver ca

3条回答
  •  自闭症患者
    2021-01-30 11:27

    You need to return an observable that completes with false

    handleError() {
      return Observable.of([false]);
    }
    

提交回复
热议问题