<input type="text" (keyup.enter)="sendit($event.target.value)" /> sendit(data){ console.log("Value",data) }