when using templete driven forms or reactive forms,the variable attached with ex: [(ngModel)]='name',used like below.
<ejs-textbox [(ngModel)]="name" required minlength="3"></ejs-textbox>
when onblur of the control or out of focus of that control ,the variable 'name' is updating..No issue.
But not updating simultaneously.
why i am requiring this?.
Ans:if i am doing validation for that control in form,until i am coming out of that control(out of focus or blur) validation will not be done.User(who is using app) may think
wrongly that still there is problem in the value which is entered.
variable update problem of text box control when using
<ejs-textbox></ejs-textbox>
but not with input using classes.
<div class="e-float-input" >
<input type="text" id="name" name="name" [(ngModel)]="name" #Name="ngModel" required>
</div>
<span *ngIf="Name.errors && Name.errors.required && (Name.dirty || Name.touched)" >
* Enter your first name
</span>