Created
January 27, 2018 18:55
-
-
Save Abiwax/8f44d3aa6daeb02fee775b05e74ececa to your computer and use it in GitHub Desktop.
forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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