how update model value when input value is changed in Angularjs2
<p>I want to change model value from input tag but I don't know how to do it in best way.</p>

<p>here is my code that I have done for that.</p>

<pre><code>&lt;div *ngFor='let l of list'&gt;
    &lt;input #temp [value]='l.test' (blur)='l.test=temp.value'/&gt;
    &lt;span (click)='check(l,temp.value)'&gt;&lt;/span&gt;
&lt;div&gt;
</code></pre>

<p>angular code</p>

<pre><code>check(l,temp:string)
{
   console.log(l.test);
   console.log(temp);
}
</code></pre>

<p>I want to do this without a blur event.
please suggest me any better way to do this.</p>