I have a formControl with value set to object like {id: 1, name: 'Ramesh'}. The input field inside mat-form-field is read-only and value either coming from database or selected from a pick list.
To show different view value I am using [value] binding like below. Its correctly displaying when control is updated later by the user. But when its initialized for the first time with saved value its showing [object Object].
Internally its depending upon the order of execution of
DefaultValueAccessor writeValue methodand[value]binding.
https://stackblitz.com/edit/angular-ivy-mkvx8a?file=src%2Fapp%2Fapp.component.ts
<input readonly [formControl]="userControl" [value]="userControl.value?.name">
I thought to create custom value accessor but it seems too much.