chore(forms): rename ngControl to formControlName

This commit is contained in:
Kara Erickson
2016-06-12 13:17:07 -07:00
parent 1f6fd3c8fc
commit 2b8d12ddf0
18 changed files with 183 additions and 174 deletions
@@ -14,19 +14,18 @@ import * as modelModule from './model';
* ```typescript
* @Component({
* selector: 'my-app',
* viewProviders: [FORM_BINDINGS]
* template: `
* <form [formGroup]="loginForm">
* <p>Login <input ngControl="login"></p>
* <p>Login <input formControlName="login"></p>
* <div ngControlGroup="passwordRetry">
* <p>Password <input type="password" ngControl="password"></p>
* <p>Confirm password <input type="password" ngControl="passwordConfirmation"></p>
* <p>Password <input type="password" formControlName="password"></p>
* <p>Confirm password <input type="password" formControlName="passwordConfirmation"></p>
* </div>
* </form>
* <h3>Form value:</h3>
* <pre>{{value}}</pre>
* `,
* directives: [FORM_DIRECTIVES]
* directives: [REACTIVE_FORM_DIRECTIVES]
* })
* export class App {
* loginForm: FormGroup;