这是我的输入字段,当此输入字段为空或无效时,我需要此输入字段,然后显示红色警报,但我想用蓝色警报显示此输入字段,这怎么可能?
<mat-form-field>
<input matInput placeholder="Type Message" [(ngModel)]="mytext" #bigicon="ngModel" required>
<button matSuffix mat-icon-button [disabled]="largeicon.errors && largeicon.errors.required || (bigicon.errors && bigicon.errors.required)" (click)="sendMessage()">
<div><mat-icon style="cursor: pointer;" [inline]="true">send</mat-icon></div>
</button>
</mat-form-field>