Skip to content

Commit

Permalink
Merge pull request #78 from ArsalanDotMe/master
Browse files Browse the repository at this point in the history
updating countdownattr in every tick for proper two-way databinding.
  • Loading branch information
siddii committed May 20, 2014
2 parents ab16d7c + 9de4ca2 commit 0400f27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/angular-timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ angular.module('timer', [])

if ($scope.countdown > 0) {
$scope.countdown--;
$scope.countdownattr = String($scope.countdown);
}
else if ($scope.countdown <= 0) {
$scope.stop();
Expand Down

0 comments on commit 0400f27

Please sign in to comment.