I use ngFor to create inputs, then when I type in a value, both the current and the latter input get the typed in value.
<div *ngFor="let val of selectionValues; index as valIndex">
<input matInput [(ngModel)]="selectionValues[valIndex]" />
<button mat-button color="primary" (click)="removeSelectionValue(valIndex)">remove</button>
</div>
The expected input values are:
(1) (blank) (blank)
then
(1) (2) (blank)
but this is what I get when I type in:
(1) (1) (blank)
then
(1) (2) (2)
Later I observed that the input loses focus when I type in.