8000 docs(ngMaxlength): document what happens on negative/non-numeric values · angular/angular.js@c2eb6d6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c2eb6d6

Browse files
committed
docs(ngMaxlength): document what happens on negative/non-numeric values
1 parent a584255 commit c2eb6d6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/ng/directive/input.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ var inputType = {
4141
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
4242
* minlength.
4343
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
44-
* maxlength.
44+
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
45+
* any length.
4546
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
4647
* that contains the regular expression body that will be converted to a regular expression
4748
* as in the ngPattern directive.
@@ -589,7 +590,8 @@ var inputType = {
589590
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
590591
* minlength.
591592
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
592-
* maxlength.
593+
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
594+
* any length.
593595
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
594596
* that contains the regular expression body that will be converted to a regular expression
595597
* as in the ngPattern directive.
@@ -676,7 +678,8 @@ var inputType = {
676678
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
677679
* minlength.
678680
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
679-
* maxlength.
681+
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
682+
* any length.
680683
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
681684
* that contains the regular expression body that will be converted to a regular expression
682685
* as in the ngPattern directive.
@@ -764,7 +767,8 @@ var inputType = {
764767
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
765768
* minlength.
766769
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
767-
* maxlength.
770+
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
771+
* any length.
768772
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
769773
* that contains the regular expression body that will be converted to a regular expression
770774
* as in the ngPattern directive.
@@ -1370,7 +1374,8 @@ function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filt
13701374
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
13711375
* minlength.
13721376
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
1373-
* maxlength.
1377+
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
1378+
* length.
13741379
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
13751380
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
13761381
* patterns defined as scope expressions.
@@ -1402,7 +1407,8 @@ function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filt
14021407
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
14031408
* minlength.
14041409
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
1405-
* maxlength.
1410+
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
1411+
* length.
14061412
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
14071413
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
14081414
* patterns defined as scope expressions.

0 commit comments

Comments
 (0)
0