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

Commit df74731

Browse files
committed
typo
1 parent b0f7048 commit df74731

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ myApp.controller('CtrlValidationDirective', ['$scope', 'validationService', func
5656
}
5757
}
5858
$scope.showValidationSummary = function () {
59+
// the $translate call with promise is a hack to make sure translation locales are loaded
60+
// you probably not have to do that in your local code
5961
$translate('SHOW_VALIDATION_SUMMARY').then(function() {
6062
$scope.displayValidationSummary = true;
6163
});
@@ -71,6 +73,8 @@ myApp.controller('Ctrl2forms', ['$scope', 'validationService', function ($scope,
7173
}
7274
}
7375
$scope.showValidationSummary = function () {
76+
// the $translate call with promise is a hack to make sure translation locales are loaded
77+
// you probably not have to do that in your local code
7478
$translate('SHOW_VALIDATION_SUMMARY').then(function() {
7579
$scope.displayValidationSummary = true;
7680
});
@@ -127,6 +131,8 @@ myApp.controller('CtrlValidationService', ['$scope', '$translate', 'validationSe
127131
};
128132

129133
$scope.showValidationSummary = function () {
134+
// the $translate call with promise is a hack to make sure translation locales are loaded
135+
// you probably not have to do that in your local code
130136
$translate('SHOW_VALIDATION_SUMMARY').then(function() {
131137
$scope.displayValidationSummary = true;
132138
});

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ P.S. For real live sample, see the [live demo](#plunker) or download the Github
214214
```
215215
<a name="global-options"></a>
216216
## Global Options
217-
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.
217+
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.
218218
```javascript
219219
myApp.controller('Ctrl', function ($scope) {
220220
$scope.$validationOptions = { debounce: 1500 }; // set the debounce globally

0 commit comments

Comments
 (0)