You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: readme.md
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -163,9 +163,8 @@ All validators are written as `snake_case` but it's up to the user's taste and c
163
163
*`date_us_short_max:d` Date must follow US short format and is lower or equal than date (d)
164
164
*`date_us_short_min:d` Date must follow US short format and is higher or equal than date (d)
165
165
*`different` alias of `different_input`
166
-
*`different_input:f` Must be different from another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the input name or the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="Password".../>` will display :: Confirmation field does not match specified field "Password".
167
-
Confirmation field does not match specified field "Password".
168
-
*`different_input:f,t` Must be different from another input field(f), same as (match:f) but also include (t) for alternate input name to be displayed in the error message (it still uses a generic error message, if you really wish to replace the full error message then you should use `match:n:alt` see [:alt](https://github.com/ghiscoding/angular-validation/wiki/Alternate-Text-on-Validators))
166
+
*`different_input:f` Must be different from another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the input name or the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="First Name".../>` will display :: *Field must be different from specified field "First Name"*.
167
+
*`different_input:f,t` Must be different from another input field(f), same as (different:f) but also include (t) for alternate input name to be displayed in the error message (it still uses a generic error message, if you really wish to replace the full error message then you should use `match:n:alt` see [:alt](https://github.com/ghiscoding/angular-validation/wiki/Alternate-Text-on-Validators))
169
168
*`digits:n` Ensures that field only has integer numbers and length precisely matches the specified length (n).
170
169
*`digits_between:min,max` Ensures that field only has integer numbers and is between a min,max length.
171
170
*`email` Checks for a valid email address
@@ -182,7 +181,7 @@ Confirmation field does not match specified field "Password".
182
181
*`ip` alias of `ipv4`
183
182
*`ipv4` Check for valid IP (IPv4)
184
183
*`ipv6` Check for valid IP (IPv6)
185
-
*`match:f` Match another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="Password".../>` will display :: Confirmation field does not match specified field "Password".
184
+
*`match:f` Match another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="Password".../>` will display :: *Confirmation field does not match specified field "Password"*.
186
185
*`match:f,t` Match another input field(f), same as (match:f) but also include (t) for alternate input name to be displayed in the error message (it still uses a generic error message, if you really wish to replace the full error message then you should use `match:n:alt` see [:alt](https://github.com/ghiscoding/angular-validation/wiki/Alternate-Text-on-Validators))
187
186
*`match_input` alias of `match`.
188
187
*`max:n` will auto-detect value type then use proper validator.
0 commit comments