diff options
| author | Dean Sofer | 2012-11-08 16:15:50 -0800 |
|---|---|---|
| committer | Igor Minar | 2012-11-25 01:18:10 +0100 |
| commit | c8fd7fd0e2c77cc3d22382367ed5a1537383bee6 (patch) | |
| tree | f9d42e38515fd8a241385eea69ca671042a9fff6 /src/ng/directive/select.js | |
| parent | 168db33985aa025eb48bc21087717ab70da0bd72 (diff) | |
| download | angular.js-c8fd7fd0e2c77cc3d22382367ed5a1537383bee6.tar.bz2 | |
docs(api): add ngRequired to input/select/textarea directives
Closes #1202
Diffstat (limited to 'src/ng/directive/select.js')
| -rw-r--r-- | src/ng/directive/select.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index e6e0ced7..31254592 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -29,6 +29,9 @@ * * @param {string} name assignable expression to data-bind to. * @param {string=} required The control is considered valid only if value is entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. * @param {comprehension_expression=} ngOptions in one of the following forms: * * * for array data sources: |
