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

Commit d0440bd

Browse files
committed
Fixed $translate delays
- The translation delays were showing up more on the Plunker because the JSON load was slower, hopefully this fixes the issue - Replaced $translate.instant() by a $translate = $filter('translate');
1 parent efdca4f commit d0440bd

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

app.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ myApp.controller('CtrlValidationDirective', ['$scope', 'validationService', func
5050
}
5151
}
5252
$scope.showValidationSummary = function () {
53-
$translate.then(function() {
54-
$scope.displayValidationSummary = true;
55-
});
53+
$scope.displayValidationSummary = true;
5654
}
5755
}]);
5856

@@ -106,9 +104,7 @@ myApp.controller('CtrlValidationService', ['$scope', '$translate', 'validationSe
106104
};
107105

108106
$scope.showValidationSummary = function () {
109-
$translate.then(function() {
110-
$scope.displayValidationSummary = true;
111-
});
107+
$scope.displayValidationSummary = true;
112108
}
113109

114110
$scope.submitForm = function() {

0 commit comments

Comments
 (0)