Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit a961ef2

Browse files
committed
typo
1 parent 18765a8 commit a961ef2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ $scope.submitForm = function() {
181181
// proceed with submit
182182
}
183183
}
184+
185+
// Option #3 - You could also use the $validationSummary to be displayed after a Submit
186+
// and prevent it from submitting if any errors remain
187+
$scope.submit = function (event) {
188+
if($scope.form1.$invalid) {
189+
$scope.displayValidationSummary = true;
190+
event.preventDefault();
191+
}
192+
}
184193
```
185194

186195
<a name="validation-summary"></a>
@@ -376,4 +385,4 @@ License
376385
* [1.3.7](https://github.com/ghiscoding/angular-validation/commit/86c16f720d6687d3b5ca93e49a0a37824027e583) `2015-03-08` Complete rewrite (but same functionality) so that I could add an Angular-Validation Service which is similar implementation as the Directive. Also added `debounce` attribute which is an alias to `typingLimit`, validation rules are now defined as an external service for better maintainability and also created a common file for shared functions by both Validation Directive and Service.
377386
* [1.3.8](https://github.com/ghiscoding/angular-validation/commit/492d1060a91fb8b49fc70a0c7a1a581d904e0db0) `2015-03-15` Added between/min/max conditional validators on all Date types (ISO, EURO_LONG, EURO_SHORT, US_LONG, US_SHORT)
378387
* [1.3.9](https://github.com/ghiscoding/angular-validation/commit/931d3b04a00f0583612aefe28ad0bfcac326a38c) `2015-03-21` Added validation summary through 2 new and equivalent properties `$scope.$validationSummary` and `$scope.formName.$validationSummary`. Also added `bower` and `gulp` support, the Gulp script gives minified files.
379-
* [1.3.10]() `2015-03-29` Added new function of `checkFormValidity()` before submitting the form. Now use only 1 minified script instead of multiples.
388+
* [1.3.10](https://github.com/ghiscoding/angular-validation/commit/18765a8dd986856a9fa176fc4835d90d25f663b2) `2015-03-29` Added new function of `checkFormValidity()` before submitting the form. Now use only 1 minified script instead of multiples.

0 commit comments

Comments
 (0)