我有样品服务主题:
private categoryFilterTypeSource = new ReplaySubject<number>();
categoryFilterType$ = this.categoryFilterTypeSource.asObservable();
changeFilterType(newValue: number) {
this.categoryFilterTypeSource.next(newValue);
}
当我订阅这个主题时,我想获得新订阅者的最后发送值。