Skip to content

Commit 0400f27

Browse files
committed
Merge pull request siddii#78 from ArsalanDotMe/master
updating countdownattr in every tick for proper two-way databinding.
2 parents ab16d7c + 9de4ca2 commit 0400f27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dist/angular-timer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ angular.module('timer', [])
239239

240240
if ($scope.countdown > 0) {
241241
$scope.countdown--;
242+
$scope.countdownattr = String($scope.countdown);
242243
}
243244
else if ($scope.countdown <= 0) {
244245
$scope.stop();

0 commit comments

Comments
 (0)