本文整理匯總了TypeScript中ionic-angular.Events.unsubscribe方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Events.unsubscribe方法的具體用法?TypeScript Events.unsubscribe怎麽用?TypeScript Events.unsubscribe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-angular.Events
的用法示例。
在下文中一共展示了Events.unsubscribe方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: ionViewWillLeave
ionViewWillLeave() {
// TODO support for browser
if (!this.platform.isCordova) return;
this.cameraToggleActive = false;
this.lightActive = false;
this.scanProvider.frontCameraEnabled = false;
this.scanProvider.deactivate();
this.events.unsubscribe('incomingDataMenu.showMenu');
this.events.unsubscribe('scannerServiceInitialized');
if (this.navParams.data.fromAddressbook) {
this.tabBarElement.style.display = 'flex';
}
}
示例2:
this.events.subscribe('selectWalletEvent', (wallet: any) => {
if (!_.isEmpty(wallet)) this.onWalletSelect(wallet, selector);
this.events.unsubscribe('selectWalletEvent');
});
示例3:
this.events.subscribe('finishFingerprintModalEvent', () => {
this.isModalOpen = false;
this.events.unsubscribe('finishFingerprintModalEvent');
});
示例4: ngOnDestroy
ngOnDestroy() {
this.events.unsubscribe('update:address');
}
示例5: ngOnDestroy
ngOnDestroy() {
delete LoginPage.isLogin;
this.events.unsubscribe('synced:from', () => { });
this.events.unsubscribe('synced:to', () => { });
}