Итак, что я сделал, я просто изменил ngModel [ngModel]="customer"
, затем
private getContractDetails(id: number) {
this.contractService.loadContractDetails(id)
.subscribe( (rez: Contract) => {
// add value to customer input
this.customer.name = rez.customerName; // <-- this
и он встал ..
--- БОНУС ---
для выбранного входа это сработало
HTML:
<mat-form-field>
<mat-label i18n="@@typeInput">Type</mat-label>
<mat-select
name="typeId"
[ngModel]="typesVal" // <--- this
(ngModelChange)="setContractType($event)"
#item="ngModel">
<mat-option *ngIf="isLoadingTypes"><span [ngTemplateOutlet]="loading"></span></mat-option>
<ng-container *ngIf="!isLoadingTypes">
<mat-option>None</mat-option>
<mat-option *ngFor="let item of contractTypeList" [value]="item">{{ item.name }}</mat-option>
</ng-container>
</mat-select>
</mat-form-field>
КОД
this.typesVal = this.contractTypeList.find(x => x.id === rez.typeId);