docs(forms): update docs for NgForm (#11547)

This commit is contained in:
Kara
2016-09-12 17:01:04 -07:00
committed by Evan Martin
parent 61aad7925f
commit 26d1423ae9
2 changed files with 20 additions and 49 deletions

View File

@ -14,8 +14,8 @@ import {NgForm} from '@angular/forms';
selector: 'example-app',
template: `
<form #f="ngForm" (ngSubmit)="onSubmit(f)" novalidate>
<input name="first" ngModel placeholder="First name" required #first="ngModel">
<input name="last" ngModel placeholder="Last name">
<input name="first" ngModel required #first="ngModel">
<input name="last" ngModel>
<button>Submit</button>
</form>