I am looking to make the required fields show in red in the angular material when the "Submit" button is clicked. To achieve this, I need to trigger the input to be marked as touched.
<div class="formRow">
<mat-form-field class="profile-field" style="width: 40%" appearance="outline">
<input required #personalInfoFirstName
class="profile-input" matInput
placeholder="firstname" name="firstName"
[(ngModel)]="firstName" #tst="ngModel">
</mat-form-field>
</div>
<div>touched = {{tst.touched}}</div>
Is there a way to force touch (tst.touched) on a [(ngModel)]?