We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fa496 commit 1b65b94Copy full SHA for 1b65b94
app/js/_timer.js
@@ -32,8 +32,10 @@ var timerModule = angular.module('timer', [])
32
$scope.language = $scope.language || 'en';
33
34
//allow to change the language of the directive while already launched
35
- $scope.$watch('language', function() {
36
- i18nService.init($scope.language);
+ $scope.$watch('language', function(newVal, oldVal) {
+ if(newVal !== undefined) {
37
+ i18nService.init(newVal);
38
+ }
39
});
40
41
//init momentJS i18n, default english
0 commit comments