Skip to content

Commit 548c6ae

Browse files
Narretzellimist
authored andcommitted
docs(select, ngOptions): add ngAttrSize as argument
Closes angular#1619
1 parent cd7a2c9 commit 548c6ae

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/ng/directive/ngOptions.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,7 @@ var ngOptionsMinErr = minErr('ngOptions');
112112
*
113113
*
114114
* @param {string} ngModel Assignable AngularJS expression to data-bind to.
115-
* @param {string=} name Property name of the form under which the control is published.
116-
* @param {string=} required The control is considered valid only if value is entered.
117-
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
118-
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
119-
* `required` when you want to data-bind to the `required` attribute.
120-
* @param {comprehension_expression=} ngOptions in one of the following forms:
115+
* @param {comprehension_expression} ngOptions in one of the following forms:
121116
*
122117
* * for array data sources:
123118
* * `label` **`for`** `value` **`in`** `array`
@@ -156,6 +151,13 @@ var ngOptionsMinErr = minErr('ngOptions');
156151
* used to identify the objects in the array. The `trackexpr` will most likely refer to the
157152
* `value` variable (e.g. `value.propertyName`). With this the selection is preserved
158153
* even when the options are recreated (e.g. reloaded from the server).
154+
* @param {string=} name Property name of the form under which the control is published.
155+
* @param {string=} required The control is considered valid only if value is entered.
156+
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
157+
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
158+
* `required` when you want to data-bind to the `required` attribute.
159+
* @param {string=} ngAttrSize sets the size of the select element dynamically. Uses the
160+
* {@link guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes ngAttr} directive.
159161
*
160162
* @example
161163
<example module="selectExample" name="select">

src/ng/directive/select.js

+2
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ var SelectController =
373373
* interaction with the select element.
374374
* @param {string=} ngOptions sets the options that the select is populated with and defines what is
375375
* set on the model on selection. See {@link ngOptions `ngOptions`}.
376+
* @param {string=} ngAttrSize sets the size of the select element dynamically. Uses the
377+
* {@link guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes ngAttr} directive.
376378
*
377379
* @example
378380
* ### Simple `select` elements with static options

0 commit comments

Comments
 (0)