Skip to content

Instantly share code, notes, and snippets.

@Abiwax
Created January 27, 2018 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Abiwax/8f44d3aa6daeb02fee775b05e74ececa to your computer and use it in GitHub Desktop.
Save Abiwax/8f44d3aa6daeb02fee775b05e74ececa to your computer and use it in GitHub Desktop.
forms
<form #jobSearchForm="ngForm" (ngSubmit)="formSubmit()">
<div class="form-group">
<label for="search">Job Title</label>
<input type="text" class="form-control" id="search"
[(ngModel)]="model.search" required name="search"
#name="ngModel">
</div>
<div class="form-group">
<label for="location">Location</label>
<input type="text" class="form-control" id="location" [(ngModel)]="model.location" required name="location"
#location="ngModel">
</div>
<button type="submit" style="width: 100%" class="btn btn-success" [disabled]="!jobSearchForm.form.valid">
Submit
</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment