Skip to content

Instantly share code, notes, and snippets.

@maltzsama
Created January 18, 2018 21:39
Show Gist options
  • Save maltzsama/f8a0bda2a01fcc6df5033b14b723ac66 to your computer and use it in GitHub Desktop.
Save maltzsama/f8a0bda2a01fcc6df5033b14b723ac66 to your computer and use it in GitHub Desktop.
<input [class.is-invalid]="firstNameInp.invalid &&(firstNameInp.touched || firstNameInp.dirty)" #firstNameInp="ngModel" required class="form-control" type="text" placeholder="name" name="name" [(ngModel)]="firstName">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment