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

Commit 01182df

Browse files
0x-r4bbitNarretz
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 #12009
1 parent e17f85c commit 01182df

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)