本文整理匯總了TypeScript中angular2/angular2.EventEmitter類的典型用法代碼示例。如果您正苦於以下問題:TypeScript EventEmitter類的具體用法?TypeScript EventEmitter怎麽用?TypeScript EventEmitter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了EventEmitter類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
reportAmount() {
var event = {
amount: this.amountControl.value
};
this.ttAmountChange.next(event);
}
示例2: clicked
clicked(product) {
this.click.next(product);
}
示例3: onKeyup
onKeyup(val) {
if (this.recentVal != val) {
this.recentVal = val;
this.changed.next(val);
}
}
示例4:
onCheckedChange($event, choice: IChoice) {
this.checked.next(choice);
}
示例5: addItem
addItem(): void {
this.itemCreated.next(this.taskTitle.value)
this.reset();
}
示例6: selectFilter
selectFilter(type: TodoDisplayType) {
this.newfilter.next(type);
}
示例7: submitTodo
submitTodo(todoTitle: string) {
if (todoTitle) {
this.newtodo.next(todoTitle);
}
}
示例8:
this.resortsEP.createResort(this.createResortForm.value.name).then((res) => {
//TODO : How to set value on controller ???
this.createResortForm.controls.name.updateValue("");
this.created.next(res);
});
示例9: onChanged
onChanged(value) {
//ObservableWrapper.callNext(this.destroy, null);
this.changed.next(value);
}