Created
September 16, 2017 16:54
-
-
Save matthieu-D/456c73a4975b7ee34f4857ad39a7b590 to your computer and use it in GitHub Desktop.
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 #userForm="ngForm" connect="myForm" (ngSubmit)="onFormSubmitted()"> | |
<div> | |
<label> | |
<span>Name</span> | |
<input type="text" name="name" placeholder="Name" ngControl ngModel required> | |
</label> | |
</div> | |
<div> | |
<label> | |
<span>Email</span> | |
<input type="email" name="email" placeholder="Email" ngControl ngModel required> | |
</label> | |
</div> | |
<div ngModelGroup="address"> | |
<div> | |
<label> | |
<span>Country</span> | |
<input type="text" name="country" placeholder="Country" ngControl ngModel required> | |
</label> | |
</div> | |
<div> | |
<label> | |
<span>City</span> | |
<input type="text" name="city" placeholder="City" ngControl ngModel required> | |
</label> | |
</div> | |
</div> | |
<input type="submit" [disabled]="userForm.invalid"> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment