I am new to Angular (5.x) and I am trying to bind the input value to string array (rule.values) at index (i) but when I change the input the array values do not change so I think binding fails. I appreciate any help or hint. Thank you
<div *ngFor="let _ of rule.value; let i = index;" id="values">
<div class="row">
<div class="col-sm-3">
Value #{{(i + 1).toString()}}
</div>
<div class="col-sm-6">
<input type="text" class="form-control" id="values{{i}}" [ngModel]="rule.value[i]" name="values{{i}}" required>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default" (click)="rule.value.splice(i, 1)">
<span class="glyphicon glyphicon-minus" aria-hidden="true"></span>
</button>
</div>
</div>
</div>