本文整理汇总了TypeScript中@angular/core.EventEmitter.emit方法的典型用法代码示例。如果您正苦于以下问题:TypeScript EventEmitter.emit方法的具体用法?TypeScript EventEmitter.emit怎么用?TypeScript EventEmitter.emit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@angular/core.EventEmitter
的用法示例。
在下文中一共展示了EventEmitter.emit方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: setTimeout
setTimeout(()=>gtEvent.emit({
name:'gt-info',
value:gtInfo
}),0);
示例2: search
search(formData) : void {
this.updatedSearchText.emit(formData.searchText);
}
示例3:
return this.storage.get('categories').then((categories) => {
categories.push(category);
this.refreshList$.emit(categories);
return this.storage.set('categories', categories);
});
示例4: onTodoDeleted
onTodoDeleted(todo: ITodo): void {
this.deleted.emit(todo);
}
示例5: sendMessage
sendMessage(msg: ToastMessage) {
this.messages$.emit(msg);
}
示例6: clicked
clicked(product: Product): void {
this.currentProduct = product;
this.onProductSelected.emit(product);
}
示例7: select
select(ev, element) {
ev.preventDefault();
this.selectAction.emit(element);
}
示例8: onKeyDown
@HostListener("keydown", ["$event"])
public onKeyDown(e:KeyboardEvent):void {
this.onQueryKeyDown.emit(e);
}
示例9: Transition
new Transition("scale", 100, TransitionDirection.Out, () =>
this.onDeselected.emit(this.value)));
示例10: Transition
this.transitionController.animate(new Transition(this.transition, this.transitionDuration, TransitionDirection.Out, () => {
this.isDismissed = true;
this.onDismiss.emit(this);
}));