本文整理汇总了TypeScript中rxjs.Subject.next方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Subject.next方法的具体用法?TypeScript Subject.next怎么用?TypeScript Subject.next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rxjs.Subject
的用法示例。
在下文中一共展示了Subject.next方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
const handler = (...args: any[]) => subject.next(...args);
示例2:
const whenActionIsDispatched = (action: ActionOf<any>) => {
action$.next(action);
return instance;
};
示例3: it
it('should open settings dialog when menu event called.', () => {
menuMessages.next(MenuEvent.OPEN_SETTINGS);
expect(settingsDialog.open).toHaveBeenCalled();
});
示例4:
gc.observable.subscribe((x)=>{
console.log('testPF.gc.next');
_s.next(x);
},()=>{},
示例5: confirm
confirm(): void {
const processedInputs = new Object();
this.componentRequests.forEach(cr => { processedInputs[cr.name] = cr.getProcessedValue(); });
this.onClose.next(processedInputs);
this.bsModalRef.hide();
}
示例6: submit
submit() {
this.onSubmit.next(this.snapName);
}
示例7: clearAllServerGroups
public clearAllServerGroups(): void {
this.serverGroups.length = 0;
this.serverGroupsStream.next();
}
示例8:
export const set = (newBreadcrumbs: Breadcrumb[]) => {
breadcrumbsSubject.next(newBreadcrumbs);
// If a plugin called set, don't clear on route change.
shouldClear = false;
};
示例9: dispatch
dispatch(action: Action): void {
this._subject.next(action);
}
示例10:
res => { this.locations.next(res.data); },