Skip to content

Commit

Permalink
docs(forms): Added FormControl initialization information (angular#11948
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Fank authored and chuckjaz committed Sep 28, 2016
1 parent 1564042 commit 36bc2ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/@angular/forms/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ export abstract class AbstractControl {
*
* You can also initialize the control with a form state object on instantiation,
* which includes both the value and whether or not the control is disabled.
* You can't use the value key without the disabled key; both are required
* to use this way of initialization.
*
* ```ts
* const ctrl = new FormControl({value: 'n/a', disabled: true});
Expand Down

0 comments on commit 36bc2ff

Please sign in to comment.