Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9c49c00

Browse files
committed
docs(input): improve type=range description
1 parent 94612d6 commit 9c49c00

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/ng/directive/input.js

+15-9
Original file line numberDiff line numberDiff line change
@@ -1036,18 +1036,24 @@ var inputType = {
10361036
* @name input[range]
10371037
*
10381038
* @description
1039-
* Native range input with number validation and transformation. Sets the `number` validation
1040-
* to always have a valid number.
1039+
* Native range input with validation and transformation. Sets the `number` validation
1040+
* to always have a valid number. Note that IE9 does not support the `range` type, but falls back
1041+
* to a text input. Model binding, validation and number parsing are nevertheless supported.
10411042
*
10421043
* @param {string} ngModel Assignable angular expression to data-bind to.
10431044
* @param {string=} name Property name of the form under which the control is published.
1044-
* @param {string=} min Sets the `min` validation to ensure that the value entered is greater the `min`.
1045-
* @param {string=} max Sets the `max` validation to ensure that the value entered is lesser than `max`.
1046-
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
1047-
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
1048-
* patterns defined as scope expressions.
1049-
* @param {string=} ngChange Angular expression to be executed when input changes due to user
1050-
* interaction with the input element.
1045+
* @param {string=} min Sets the `min` validation to ensure that the value entered is greater
1046+
* than `min`. Can be interpolated.
1047+
* @param {string=} max Sets the `max` validation to ensure that the value entered is less than `max`.
1048+
* Can be interpolated.
1049+
* @param {string=} ngMin Takes an expression. Sets the `min` validation to ensure that the value
1050+
* entered is greater than `min`. Does not set the `min` attribute and therefore
1051+
* adds no native HTML5 validation.
1052+
* @param {string=} ngMax Takes an expression. Sets the `max` validation to ensure that the value
1053+
* entered is less than `max`. Does not set the `min` attribute and therefore
1054+
* adds no native HTML5 validation.
1055+
* @param {string=} ngChange Angular expression to be executed when the ngModel value changes due
1056+
* to user interaction with the input element.
10511057
*
10521058
* @example
10531059
<example name="range-input-directive" module="rangeExample">

0 commit comments

Comments
 (0)