RXJS进口表现

时间:2018-01-24 09:18:29

标签: angular rxjs

导入时有最佳做法吗?

一种方式比另一方好吗?

import { mergeMap, merge, withLatestFrom, map } from 'rxjs/operators';

//or

import { mergeMap } from 'rxjs/operators/mergeMap';
import { merge } from 'rxjs/operators/merge';
import { withLatestFrom } from 'rxjs/operators/withLatestFrom';
import { map } from 'rxjs/operators/map';

0 个答案:

没有答案