本文整理匯總了TypeScript中rxjs.Subscription類的典型用法代碼示例。如果您正苦於以下問題:TypeScript Subscription類的具體用法?TypeScript Subscription怎麽用?TypeScript Subscription使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Subscription類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: afterEach
afterEach(() => {
onPositionChangeSubscription.unsubscribe();
document.body.removeChild(scrollable);
});
示例2: ngOnDestroy
ngOnDestroy(): void {
this.routerStateDataSubscription.unsubscribe();
}
示例3: ngOnDestroy
ngOnDestroy() {
this.actionsSubscription.unsubscribe();
}
示例4: ngOnDestroy
public ngOnDestroy() : void {
( this.paramMapSubscription ) && this.paramMapSubscription.unsubscribe();
}
示例5: onCommunicationManagerStopping
onCommunicationManagerStopping() {
super.onCommunicationManagerStopping();
this._advertiseSubscription && this._advertiseSubscription.unsubscribe();
}
示例6: ngOnDestroy
ngOnDestroy() {
this._intlSubscription.unsubscribe();
this._focusMonitor.stopMonitoring(this._element.nativeElement);
}
示例7: ngOnDestroy
public ngOnDestroy(){
this.paramsSubscription.unsubscribe();
}
示例8: afterEach
afterEach(() => {
httpClient.verify();
subscription.unsubscribe();
});
示例9: ngOnDestroy
ngOnDestroy() {
this.sub.unsubscribe()
}
示例10: ngOnDestroy
ngOnDestroy() {
if (this.sub != null) {
this.sub.unsubscribe();
}
}