Angular 在html中加载时强制选择要接触的角度材质

Angular 在html中加载时强制选择要接触的角度材质,angular,angular-material,Angular,Angular Material,我希望在加载时默认触摸我的垫选择,以便在加载时显示错误 <form #form1="ngForm"> <div class="row clearfix flex"> <mat-icon class="inline">dvr</mat-icon> <mat-form-field class="full-width" appearanc

我希望在加载时默认触摸我的垫选择,以便在加载时显示错误

<form #form1="ngForm">
    <div class="row clearfix flex">
      <mat-icon class="inline">dvr</mat-icon>
      <mat-form-field class="full-width" appearance="outline">
        <mat-label>What practice management software do you currently use?</mat-label>
        <mat-select name="selectedSoftwareValued" placeholder="Please enter the name of the software"
          [(ngModel)]="myPractice['software']" required>
          <mat-option *ngFor="let software of softwares | orderBy : ['viewValue'] "
            [value]="software.value">
            {{ software.viewValue }}
          </mat-option>
        </mat-select>
      </mat-form-field>

      <mat-form-field class="full-width" *ngIf="myPractice['software'] === 'other'" appearance="outline">
        <mat-label>What software do you use? </mat-label>
        <input name="other_software" [(ngModel)]='selectedSoftwareValue' matInput
          placeholder="Please enter the name of the software" required>
      </mat-form-field>
    </div>
</form>

录像机
您目前使用的机构管理软件是什么?
{{software.viewValue}
你用什么软件?

mat select中是否有默认触摸的属性?

这是否回答了您的问题?