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

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Apr 11, 2015
1 parent b0f7048 commit df74731
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ myApp.controller('CtrlValidationDirective', ['$scope', 'validationService', func
}
}
$scope.showValidationSummary = function () {
// the $translate call with promise is a hack to make sure translation locales are loaded
// you probably not have to do that in your local code
$translate('SHOW_VALIDATION_SUMMARY').then(function() {
$scope.displayValidationSummary = true;
});
Expand All @@ -71,6 +73,8 @@ myApp.controller('Ctrl2forms', ['$scope', 'validationService', function ($scope,
}
}
$scope.showValidationSummary = function () {
// the $translate call with promise is a hack to make sure translation locales are loaded
// you probably not have to do that in your local code
$translate('SHOW_VALIDATION_SUMMARY').then(function() {
$scope.displayValidationSummary = true;
});
Expand Down Expand Up @@ -127,6 +131,8 @@ myApp.controller('CtrlValidationService', ['$scope', '$translate', 'validationSe
};

$scope.showValidationSummary = function () {
// the $translate call with promise is a hack to make sure translation locales are loaded
// you probably not have to do that in your local code
$translate('SHOW_VALIDATION_SUMMARY').then(function() {
$scope.displayValidationSummary = true;
});
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ P.S. For real live sample, see the [live demo](#plunker) or download the Github
```
<a name="global-options"></a>
## Global Options
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.
To change default options, you can change the `$scope.$validationOptions`, for now only the `debounce` property is used but this might expand in the future.
```javascript
myApp.controller('Ctrl', function ($scope) {
$scope.$validationOptions = { debounce: 1500 }; // set the debounce globally
Expand Down

0 comments on commit df74731

Please sign in to comment.