<mat-form-field class="editfield" appearance="outline" color="primary">
  <mat-label>Name</mat-label>
  <input matInput [formControl]="field" (change)="update()" />
  <mat-error *ngIf="field.invalid">{{ getErrorMessage() }}</mat-error>
</mat-form-field>
