I want to change model value from input tag but I don't know how to do it in best way.
here is my code that I have done for that.
<div *ngFor='let l of list'>
<input #temp [value]='l.test' (blur)='l.test=temp.value'/>
<span (click)='check(l,temp.value)'></span>
<div>
angular code
check(l,temp:string)
{
console.log(l.test);
console.log(temp);
}
I want to do this without a blur event. please suggest me any better way to do this.