File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 3
3
"license" : " MIT" ,
4
4
"branchVersion" : " ^1.7.0" ,
5
5
"branchPattern" : " 1.7.*" ,
6
- "distTag" : " latest " ,
6
+ "distTag" : " next " ,
7
7
"repository" : {
8
8
"type" : " git" ,
9
9
"url" : " https://github.com/angular/angular.js.git"
Original file line number Diff line number Diff line change @@ -670,7 +670,11 @@ var inputType = {
670
670
* error docs for more information and an example of how to convert your model if necessary.
671
671
* </div>
672
672
*
673
- * ## Issues with HTML5 constraint validation
673
+ *
674
+ *
675
+ * @knownIssue
676
+ *
677
+ * ### HTML5 constraint validation and `allowInvalid`
674
678
*
675
679
* In browsers that follow the
676
680
* [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),
@@ -679,6 +683,17 @@ var inputType = {
679
683
* which means the view / model values in `ngModel` and subsequently the scope value
680
684
* will also be an empty string.
681
685
*
686
+ * @knownIssue
687
+ *
688
+ * ### Large numbers and `step` validation
689
+ *
690
+ * The `step` validation will not work correctly for very large numbers (e.g. 9999999999) due to
691
+ * Javascript's arithmetic limitations. If you need to handle large numbers, purpose-built
692
+ * libraries (e.g. https://github.com/MikeMcl/big.js/), can be included into AngularJS by
693
+ * {@link guide/forms#modifying-built-in-validators overwriting the validators}
694
+ * for `number` and / or `step`, or by {@link guide/forms#custom-validation applying custom validators}
695
+ * to an `input[text]` element. The source for `input[number]` type can be used as a starting
696
+ * point for both implementations.
682
697
*
683
698
* @param {string } ngModel Assignable AngularJS expression to data-bind to.
684
699
* @param {string= } name Property name of the form under which the control is published.
You can’t perform that action at this time.
0 commit comments