本文整理匯總了TypeScript中ng-jhipster.JhiEventManager類的典型用法代碼示例。如果您正苦於以下問題:TypeScript JhiEventManager類的具體用法?TypeScript JhiEventManager怎麽用?TypeScript JhiEventManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了JhiEventManager類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: registerChangeInPersonels
registerChangeInPersonels() {
this.eventSubscriber = this.eventManager.subscribe('personelListModification', (response) => this.loadAll());
}
示例2: ngOnDestroy
ngOnDestroy() {
this.subscription.unsubscribe();
this.eventManager.destroy(this.eventSubscriber);
}
示例3: ngOnDestroy
ngOnDestroy() {
if (this.cleanHttpErrorListener !== undefined && this.cleanHttpErrorListener !== null) {
this.eventManager.destroy(this.cleanHttpErrorListener);
this.alerts = [];
}
}
示例4: registerChangeInSpeakers
registerChangeInSpeakers() {
this.eventSubscriber = this.eventManager.subscribe('speakerListModification', (response) => this.loadAll());
}
示例5: registerChangeInPacientes
registerChangeInPacientes() {
this.eventSubscriber = this.eventManager.subscribe(
'pacientesListModification',
(response) => this.load(this.pacientes.id)
);
}
示例6: registerChangeInQuotes
registerChangeInQuotes() {
this.eventSubscriber = this.eventManager.subscribe('quoteListModification', response => this.loadAll());
}
示例7: registerChangeInLabels
registerChangeInLabels() {
this.eventSubscriber = this.eventManager.subscribe(
'labelListModification',
(response) => this.load(this.label.id)
);
}
示例8: registerChangeInDepartments
registerChangeInDepartments() {
this.eventSubscriber = this.eventManager.subscribe(
'departmentListModification',
(response) => this.load(this.department.id)
);
}
示例9: registerChangeInVerbDefinitions
registerChangeInVerbDefinitions() {
this.eventSubscriber = this.eventManager.subscribe('verbDefinitionListModification', (response) => this.reset());
}
示例10: registerChangeInTags
registerChangeInTags() {
this.eventSubscriber = this.eventManager.subscribe(
'tagListModification',
(response) => this.load(this.tag.id)
);
}