While working with reactive forms, I encountered an issue where accessing the same control in multiple inputs seemed to result in one-way data binding (input-to-model). If I make edits in one input, it updates the model correctly but does not refresh the other input as expected.
<input type="text" formControlName="test" id="in1">
<input type="text" formControlName="test" id="in2">
To address this, I found a workaround by adding the following line to both inputs:
(change)="form.controls.test.setValue(form.controls.test.value)
However, I believe this solution is not ideal. Am I missing something here? What is the proper way to achieve the desired outcome?