From 9de4ca2e8315ba5f184aaa9307c8b6a4692d8b7b Mon Sep 17 00:00:00 2001 From: Arsalan Ahmad Date: Mon, 19 May 2014 22:13:45 +0500 Subject: [PATCH] updating countdownattr in every tick for proper two-way databinding. --- dist/angular-timer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/angular-timer.js b/dist/angular-timer.js index d3dafbe..1addd55 100644 --- a/dist/angular-timer.js +++ b/dist/angular-timer.js @@ -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();