本文整理汇总了TypeScript中angular2/angular2.EventEmitter.next方法的典型用法代码示例。如果您正苦于以下问题:TypeScript EventEmitter.next方法的具体用法?TypeScript EventEmitter.next怎么用?TypeScript EventEmitter.next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类angular2/angular2.EventEmitter
的用法示例。
在下文中一共展示了EventEmitter.next方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: reportAmount
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
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);
}