I am using reactive driven form approach. I have two drop down which has list of countries in two different languages say in English and Hindi. My use case is if I am selecting any item from the English drop down, from Hindi dropdown it should get bind. (Assuming the country code is taken as same for both the drop down)
I tried binding using [value], but it is selecting only once, if I am selecting different value the same is not reflecting. On binding using ngModel, below error is coming ngModel cannot be used to register form controls with a parent formGroup directive.
<form [formGroup]="userForm" class="user__form">
<div class="user__dropdown">
<mat-form-field>
<mat-select
placeholder="REGION"
formControlName="region"
#region
>
<mat-option *ngFor="let region of regions" [value]="region.locationCode">{{
region.locationName
}}</mat-option>
</mat-select>
</mat-form-field>
</div>
</form>
<form [formGroup]="secUserForm" class="user__form">
<div class="user__dropdown">
<mat-form-field>
<mat-select
name="t_region"
[value]="userForm.get('region').value"
[disabled]="true"
[placeholder]="REGION"
>
<mat-option *ngFor="let region of transRegions" [value]="region.locationCode">{{
region.locationName
}}</mat-option>
</mat-select>
</mat-form-field>
</div>
</form>