Tags: AppStackTop/angular-validation
Tags
Merge pull request ghiscoding#136 from Gusi/angular-validation-is-not… …-found-by-browserify-#128 Updated main entry at package.json to work with WebPack
Dates validator now checks for leap year, fix ghiscoding#130 - Prior to this change, Dates validator had basic tests on them and it wasn't validating leap year. Now it does check for leap year and also check for a valid calendar date. - Note: Short dates are deprecated and weren't part of this change, I spent too much time trying to adapt regex I found. If someone want to fix them, please make a PR and I'll be happy :)
Fixed an issue with 3rd party single object
- Fixed an issue with 3rd validation when an object was disguised as an
array and was not triggering a $scope.$watch, so the validation was
never kicking in. For example the 3rd party package "Dropdown
Multiselect" when setting the option of "selectionLimit" to 1 is
returning an array while in fact it's a an object. It's returning this
`[id: 1, label: 'John']` but in reality this is an object (not an array)
and should be this `{id: 1, label: 'John'}` and so because of that, the
$scope.$watch never kicks in.
- Also added a international phone number validation
Breaking Change rename ValidationService issue ghiscoding#107 - new 1.5.x branch has a breaking change, which is the fix of the uppercase on ValidationService object (instead of validationService which was wrong has mentioned in issue ghiscoding#107). - added angular-validation-ghiscoding to NPM and fixed the .npmignore
PreviousNext