本文整理匯總了TypeScript中rxjs.Subscription.unsubscribe方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Subscription.unsubscribe方法的具體用法?TypeScript Subscription.unsubscribe怎麽用?TypeScript Subscription.unsubscribe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rxjs.Subscription
的用法示例。
在下文中一共展示了Subscription.unsubscribe方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: ngOnDestroy
public ngOnDestroy() {
if (this._entrySubscription) {
this._entrySubscription.unsubscribe();
}
}
示例2: ngOnDestroy
ngOnDestroy() {
this.subscription.unsubscribe();
}
示例3: ngOnDestroy
ngOnDestroy(): void {
this.subs.unsubscribe();
}
示例4: ngOnDestroy
ngOnDestroy() {
this._removeSubscription.unsubscribe();
}
示例5: ngOnDestroy
public ngOnDestroy() : void {
( this.paramMapSubscription ) && this.paramMapSubscription.unsubscribe();
( this.unlisten ) && this.unlisten();
}
示例6: ngOnDestroy
ngOnDestroy() {
if (this.todoListSubscription)
this.todoListSubscription.unsubscribe();
}
示例7: unsubscribeFromTimer
unsubscribeFromTimer() {
this.timeTracker.unsubscribe();
}
示例8: disconnectIframeView
disconnectIframeView(iframe: HTMLIFrameElement) {
this.iframeReloadSubscription.unsubscribe();
}
示例9: ngOnDestroy
ngOnDestroy() {
if (this.parameterSubscription) {
this.parameterSubscription.unsubscribe();
}
}
示例10: ngOnDestroy
ngOnDestroy() {
if (this.sub) {
this.sub.unsubscribe();
}
}