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.
- Added Service functionality (same implementation as Directive)
- Added `debounce` as new alias for `typingLimit`
- Extrated the validation rules into it's own separate file
- Extrated common functions into a shared file by Directive & Service
- Lot of refactoring
// you can create indepent call to the validation service
51
+
myValidation.addValidator({
52
+
elmName: 'input2',
53
+
debounce: 3000,
54
+
scope: $scope,
55
+
rules: 'numeric_signed|required'
56
+
});
57
+
58
+
// you can also chain validation service and add multiple validators at once
59
+
// we optionally start by defining some global options. Note: each validator can overwrite individually these properties (ex.: validatorX can have a `debounce` different than the global set)
60
+
// there is 2 ways to write a call... #1 with elementName & rules defined as 2 strings arguments ... #2 with 1 object as argument (with defined property names)
<!-- angular-validation, directive and service are totally you can load one or the other or you can use them in parallel too. But `-common.js` and `-rules.js` are mandatory. -->
0 commit comments