Here is my component's template
<input #emailId (focusout)="emailIdCheck(emailId.value)" #emailIDD (keydown.tab)="emailIdCheck(emailIDD.value)" type="text" placeholder="Your Email ID">
As you can see I have bound the focusout event as well as keydown.tab (tab keydown) event to a method in my component class.
But this looks ugly and does not scale well if I want to bind a number of events.
Is there a possibility to have something like the below?
<input #emailId (focusout|keydown.tab)="emailIdCheck(emailId.value)" type="text" placeholder="Your Email ID">
Disclaimer: I started practicing angular2 couple of weeks back and am still new