Skip to content

Commit 6b51c52

Browse files
committed
Merge pull request siddii#219 from jossef/master
Added support to bind to timer's variables from outside
2 parents ea3d7e8 + a8cf1f2 commit 6b51c52

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

app/js/_timer.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,19 @@ var timerModule = angular.module('timer', [])
1212
autoStart: '&autoStart',
1313
language: '@?',
1414
fallback: '@?',
15-
maxTimeUnit: '='
15+
maxTimeUnit: '=',
16+
seconds: '=?',
17+
minutes: '=?',
18+
hours: '=?',
19+
days: '=?',
20+
months: '=?',
21+
years: '=?',
22+
secondsS: '=?',
23+
minutesS: '=?',
24+
hoursS: '=?',
25+
daysS: '=?',
26+
monthsS: '=?',
27+
yearsS: '=?'
1628
},
1729
controller: ['$scope', '$element', '$attrs', '$timeout', 'I18nService', '$interpolate', 'progressBarService', function ($scope, $element, $attrs, $timeout, I18nService, $interpolate, progressBarService) {
1830

dist/angular-timer.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,19 @@ var timerModule = angular.module('timer', [])
1919
autoStart: '&autoStart',
2020
language: '@?',
2121
fallback: '@?',
22-
maxTimeUnit: '='
22+
maxTimeUnit: '=?',
23+
seconds: '=?',
24+
minutes: '=?',
25+
hours: '=?',
26+
days: '=?',
27+
months: '=?',
28+
years: '=?',
29+
secondsS: '=?',
30+
minutesS: '=?',
31+
hoursS: '=?',
32+
daysS: '=?',
33+
monthsS: '=?',
34+
yearsS: '=?'
2335
},
2436
controller: ['$scope', '$element', '$attrs', '$timeout', 'I18nService', '$interpolate', 'progressBarService', function ($scope, $element, $attrs, $timeout, I18nService, $interpolate, progressBarService) {
2537

0 commit comments

Comments
 (0)