Skip to content

Commit 610414f

Browse files
0x-r4bbitnetman92
authored andcommitted
docs(ngMessages): fixes logical bug
The paragraph below this changes says: "Then the `required` message will be displayed first." `required` needs to be `true` to match that sentence. Closes angular#12009
1 parent 6bde575 commit 610414f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngMessages/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var jqLite = angular.element;
5151
*
5252
* ```javascript
5353
* <!-- keep in mind that ngModel automatically sets these error flags -->
54-
* myField.$error = { minlength : true, required : false };
54+
* myField.$error = { minlength : true, required : true };
5555
* ```
5656
*
5757
* Then the `required` message will be displayed first. When required is false then the `minlength` message

0 commit comments

Comments
 (0)