Issue
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
Solution
https://github.com/angular/angular/issues/6675
Oct 3 2016
not planned in a near future
Answered By - Günter Zöchbauer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.