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.
RemoveValidator in Directive, fixed ngDisabled in Service
- Added RemoveValidator( ) for Directive as well
- Added Protractor tests on RemoveValidator( ) for both the Directive
and Service
- Fixed ngDisabled not working correctly in Service
- Added Protractor tests for ngDisabled On/Off in both Directive and
Service
Copy file name to clipboardExpand all lines: changelog.txt
+2-1
Original file line number
Diff line number
Diff line change
@@ -29,4 +29,5 @@ Angular-Validation change logs
29
29
1.3.25 (2015-05-19) Enhancement #34 to add Remote Validation and updated Protractor to cover this new feature.
30
30
1.3.26 (2015-05-30) Added enhancement #35 - PreValidate the Form, display all errors on page load.
31
31
1.3.27 (2015-06-02) Added possibility to use own isolated scope (issue #37 and #26). Fixed an implementation issue found from last revision (issue #35). Fixed email validation (issue #38). Fixed a performance issue found with onBlur which would run as much validations as there was characters inside the input when onBlur was called (abcdef => would make 6 validations) and this was extremely costly with a Remote validation call. Update the code of Remote validation to also accept the "As" alias "remote:vm.customRemoteValidation". Finally added and updated a few Protractor tests to cover all of the above and more.
32
-
1.3.28 (2015-06-04) Fixed a bug with ngDisabled not being interpreted before observing it (ng-disabled="vm.type == 1" would give false result because it was not being interpreted), added Protractor Test for this behavior in 2Forms page. Added `displayOnlyLastErrorMsg` in the list of Global Options. Cleaned up a lot of code.
32
+
1.3.28 (2015-06-04) Fixed a bug with ngDisabled not being interpreted before observing it (ng-disabled="vm.type == 1" would give false result because it was not being interpreted), added Protractor Test for this behavior in 2Forms page. Added `displayOnlyLastErrorMsg` in the list of Global Options. Cleaned up a lot of code.
33
+
1.3.29 (2015-06-10) Added RemoveValidator() for Directive, added Protractor tests on RemoveValidator() for both the Directive and Service. Fixed ngDisabled not working correctly in Service, added Protractor tests for ngDisabled On/Off in both Directive and Service
Copy file name to clipboardExpand all lines: protractor/mixed_validation_spec.js
+145-5
Original file line number
Diff line number
Diff line change
@@ -80,14 +80,15 @@
80
80
'Change language',
81
81
'May only contain letters, numbers, dashes and spaces. Must be at least 15 characters. Field is required.'
82
82
];
83
-
varerrorMessages2FormsExtra='Field is required.';
83
+
varerrorMessages2FormsExtra='May only contain letters, numbers and dashes. Must be at least 2 characters. Field is required.';
84
84
varvalidInput2FormsTexts=[
85
85
'John',
86
86
'Doe',
87
87
'abc',
88
88
'en',
89
89
'This is a great tool'
90
90
];
91
+
varinput3error='May only contain a positive or negative float value (integer excluded). Needs to be a numeric value, between -0.6 and 99.5. Field is required.';
91
92
92
93
for(vark=0,kln=types.length;k<kln;k++){
93
94
// because we are dealing with promises, we better use closures to pass certain variables
@@ -173,7 +174,6 @@
173
174
element(by.cssContainingText('option','en')).click();// click on good option first
174
175
element(by.cssContainingText('option','...')).click();// then click on option[0], the one containing '...'
Copy file name to clipboardExpand all lines: readme.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#Angular Validation (Directive / Service)
2
-
`Version: 1.3.28`
2
+
`Version: 1.3.29`
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!
0 commit comments