本文整理汇总了TypeScript中@angular/core.EventEmitter.unsubscribe方法的典型用法代码示例。如果您正苦于以下问题:TypeScript EventEmitter.unsubscribe方法的具体用法?TypeScript EventEmitter.unsubscribe怎么用?TypeScript EventEmitter.unsubscribe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@angular/core.EventEmitter
的用法示例。
在下文中一共展示了EventEmitter.unsubscribe方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: ngOnDestroy
ngOnDestroy()
{
//not sure if angular will clean this up on destroy, so doing it explicitly.
//Should be done higher up in class heirarchy or in utility in generic manner
this.planContextTO = null;
this.loanAppProx = null;
this.openLoanEmitter.unsubscribe();
}
示例2: ngOnDestroy
ngOnDestroy():any {
this.userSubscription.unsubscribe();
this.errorSubscription.unsubscribe();
}
示例3: ngOnDestroy
ngOnDestroy()
{
//add cleanup code here
this.loginSubscription.unsubscribe();
}
示例4: ngOnDestroy
public ngOnDestroy() {
this.surveySubscription.unsubscribe();
this.userEventSubscription.unsubscribe();
this.userSubscription.unsubscribe();
}
示例5: ngOnDestroy
ngOnDestroy():any {
this.forgotPasswordSubscription.unsubscribe();
this.errorSubscription.unsubscribe();
}
示例6: ngOnDestroy
ngOnDestroy() {
this.twitterSubscription.unsubscribe();
this.userSubscription.unsubscribe();
this.errorSubscription.unsubscribe();
this.linkedInSubscription.unsubscribe();
}