Regarding data binding, it is possible to achieve it (property and event binding) where $event represent the value being entered by the below
<input [ngModel]="username" (ngModelChange)="change($event)">
But then what would the below mean?
<input [(ngModel)]="username" (ngModelChange)="change($event)">
Why am i asking this question is because i need to set a maxlength of characters for an input element of type number. Please refer to this plunker http://plnkr.co/edit/5oHCzelp5z2M2GQWLgg9?p=preview
Point is if I remove the brackets from ngModel as below, more than the specified number of characters can still be entered.
<input [ngModel]="username" (ngModelChange)="change($event)">
Thanks for an explanation.
Ashley