本文整理匯總了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); },