ng-pristine directive
Angular's ng-pristine directive checks if a form field has been updated by the user. It indicates whether the field is in its initial state (pristine) or has been touched/modified (dirty).
<input type="text" ngModel name="username" #username="ngModel" required>
<div *ngIf="username.pristine">
Please enter a username.
</div>