I am new to Aurelia Js and am using repeat.for for list some text boxes, which may contain some values. Here,listed text-box is fine, problem is am using value.bind to bind the previous value/ new value (user input) while typing in text-box, it applying for all model( for all i.companyname)
code :
<div class="row" repeat.for="i of experience_array">
<input type='text' value.bind='i.companyname'/>
<input type='text' value.bind='i.experience'/>
</div>
Also tried :
<div class="row" repeat.for="i of experience_array.length">
<input type='text' value.bind='$parent.experience_array[i]['companyname']'/>
<input type='text' value.bind='$parent.experience_array[i]['experience']'/>
</div>
How to fix this? Guess, am missing something in aurelia binding concept.