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

Commit b0f7048

Browse files
committed
typo
1 parent 1283a3a commit b0f7048

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ myApp.controller('Ctrl', ['$location', '$route', '$scope', '$translate', functio
4848
// -- Controller to use Angular-Validation Directive
4949
// -----------------------------------------------
5050
myApp.controller('CtrlValidationDirective', ['$scope', 'validationService', function ($scope, validationService) {
51-
$scope.$validationOptions = { debounce: 4500 };
51+
$scope.$validationOptions = { debounce: 1500 }; // you can change default debounce globally
5252

5353
$scope.submitForm = function() {
5454
if(new validationService().checkFormValidity($scope.form1)) {

readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ P.S. For real live sample, see the [live demo](#plunker) or download the Github
215215
<a name="global-options"></a>
216216
## Global Options
217217
To change default options, you can change the `$scope.$validationOptions`, for now only the `debounce` property is used but this might expend in the future.
218-
To define the debounce globally (for all form elements), you could use `$scope.$validationOptions = { debounce: 1500 };` or set it on each element `<input debounce="1500"/>
219218
```javascript
220219
myApp.controller('Ctrl', function ($scope) {
221220
$scope.$validationOptions = { debounce: 1500 }; // set the debounce globally
@@ -497,4 +496,4 @@ License
497496
* [1.3.14](https://github.com/ghiscoding/angular-validation/pull/19) `2015-04-07` Merge pull request #19 Added norwegian translation and changes to allow user to remove invalid validators
498497
* [1.3.15](https://github.com/ghiscoding/angular-validation/commit/24037e4b2e22658e7e2011c022ba4cca26f391d9) `2015-04-08` Fixed #23 If multiple forms exist in the app the errors in 1 form affect validation in the other
499498
* [1.3.16](https://github.com/ghiscoding/angular-validation/commit/6c419d45bdb00341416d91199003d827259bd5da) `2015-04-09` Accept Merge #3 Fixed removeFromValidationSummary to also remove from 'local' array
500-
* [1.3.17]() `2015-04-11` Added global `$scope.$validationOptions` [Global Options](#global-options) object, for now only has the `debounce` property that be used by both the Directive and Service.
499+
* [1.3.17](https://github.com/ghiscoding/angular-validation/commit/1283a3a7435c70ec0a355ee273c8479e4b9bdabf) `2015-04-11` Added global `$scope.$validationOptions` [Global Options](#global-options) object, for now only has the `debounce` property that be used by both the Directive and Service.

0 commit comments

Comments
 (0)