chore(forms): rename ngControl to formControlName
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user