我有流是由Rx BehaviorSubject的next()方法触发的。如何在订阅者之间共享pipedData$流?我试图在这里使用share运算符,以避免在map运算符内部进行繁重的重新计算,但没有成功-每个订阅者都会产生重新计算。here's stackblitz for this issue 还有可能从来源获取订阅者的数量吗?import { interval, BehaviorSubject } from 'rxjs
我使用的是Angular2 final ("@angular/core":"~2.1.1“with "rxjs":"5.0.2")。这是我的app.component.ts:import {Observable} from 'rxjs/Observableplaceholder="Search..." >})