flatMap missing after upgrading to RC 6 and RxJS Beta 11

后端 未结 2 1502
挽巷
挽巷 2021-01-18 10:36

After upgrading to RC6 and rxjs@5.0.0-beta.11 I seem to be missing a few extensions from Observable object.

flatMap operator is gone, mergeMap is also not here. I on

2条回答
  •  一生所求
    2021-01-18 11:04

    After upgrade to Angular 4, I've realized that now the correct way for importing flatMap is:

    import {Observable} from 'rxjs/Rx'
    import 'rxjs/add/operator/mergeMap';
    

提交回复
热议问题