Skip to content

Commit 2960796

Browse files
Paul LeclercqPaul Leclercq
authored andcommitted
replace by to get the value of a variable when initializing the directive.
1 parent 4010b83 commit 2960796

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/js/_timer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ var timerModule = angular.module('timer', [])
2929
$scope.autoStart = $attrs.autoStart || $attrs.autostart;
3030

3131

32-
$scope.language = $attrs.language || 'en';
32+
$scope.language = $scope.language || 'en';
3333
//init momentJS i18n, default english
3434

3535
var i18nService = new I18nService();
36-
3736
i18nService.init($scope.language);
3837

3938
if ($element.html().trim().length === 0) {

0 commit comments

Comments
 (0)