本文整理汇总了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', () => { });
}