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: changelog.txt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,4 +26,5 @@ Angular-Validation change logs
26
26
1.3.22 (2015-05-03) Added new element attribute of `friendly-name` which is used ONLY in the ValidationSummary, this friendly name is to give a better element name display, which also support translation, inside the ValidationSummary instead of just "input1" (see ValidationSummary for more details).
27
27
1.3.23 (2015-05-05) Added option to display only last error message instead of all messages at once. Fixed a bug where changing route on View/Controller would make the ValidationSummary fail when coming back to original View/Controller, this bug was associated to the fact that the ValidationSummary kept growing from Controller to Controller, now this ValidationSummary is wipe out as soon as we detect a route change.
28
28
1.3.24 (2015-05-17) Replaced all `:param` inside each locale translations with a better standard of {0}, {1}, etc.. like C# `String.Format()`. Added a full Protractor End-to-End test suite (1000+ asserts). Fixed a few minor bugs found with Protractor test cases. Fixed issue #36, bower.json scripts in wrong order.
29
-
1.3.25 (2015-05-19) Enhancement #34 to add Remote Validation and updated Protractor to cover this new feature.
29
+
1.3.25 (2015-05-19) Enhancement #34 to add Remote Validation and updated Protractor to cover this new feature.
30
+
1.3.26 (2015-05-30) Added enhancement #35 - PreValidate the Form, display all errors on page load.
Copy file name to clipboardExpand all lines: readme.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#Angular Validation (Directive / Service)
2
-
`Version: 1.3.25`
2
+
`Version: 1.3.26`
3
3
### Form validation after user inactivity of default 1sec. (customizable timeout)
4
4
5
5
Forms Validation with Angular made easy! Angular-Validation is an angular directive/service with locales (languages) with a very simple approach of defining your `validation=""` directly within your element to validate (input, textarea, etc) and...that's it!!! The directive/service will take care of the rest!
@@ -73,6 +73,7 @@ All the documentation has been moved to the Wiki section, see the [github wiki](
Copy file name to clipboardExpand all lines: src/validation-common.js
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -242,7 +242,8 @@ angular
242
242
243
243
// Make sure that element has a name="" attribute else it will not work
244
244
if(typeofelmName==="undefined"||elmName===null){
245
-
throw'Angular-Validation Service requires you to have a (name="") attribute on the element to validate... Your element is: ng-model="'+elm.attr('ng-model')+'"';
throw'Angular-Validation Service requires you to have a (name="") attribute on the element to validate... Your element is: ng-model="'+ngModelName+'"';
246
247
}
247
248
248
249
// user might have passed a message to be translated
@@ -520,8 +521,17 @@ angular
520
521
formElmObj.message=message;
521
522
}
522
523
524
+
// if user is pre-validating all form elements, display error right away
0 commit comments