Callback for matching a time of timer countdown
It would be useful if there is a callback if the timer matches a particular time during countdown timer.
well it would be nice if we had angular code showing how to call the callback function. I've tried using the attribute finish-callback="alert('worked');", but without much luck.
From the docs (view source) : HTML
<timer countdown="3" interval="1000" finish-callback="callbackTimer.finished()">{{seconds}} second{{secondsS}} </timer>
Inside the controller :
$scope.callbackTimer = {};
$scope.callbackTimer.status = 'Running';
$scope.callbackTimer.callbackCount = 0;
$scope.callbackTimer.finished = function() {
$scope.callbackTimer.status = 'COMPLETE!!';
$scope.callbackTimer.callbackCount++;
$scope.$apply();
};
Doesnt work
Hello Dear,
I'm not getting you.
On Sat, Sep 24, 2016 at 12:45 AM, gagikmkrtchyan1987 < [email protected]> wrote:
Doesnt work
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/siddii/angular-timer/issues/120#issuecomment-249279080, or mute the thread https://github.com/notifications/unsubscribe-auth/ASyfRo0VWQB_9dDoJBJIxLq9yO3c3K5cks5qtCVagaJpZM4Ct6Ll .
Countdown timer ticks slower, multiple timers starting at the same time are showing different results
Dear, I am not getting you.
On Mon, Sep 26, 2016 at 10:23 PM, gagikmkrtchyan1987 < [email protected]> wrote:
Countdown timer ticks slower, multiple timers starting at the same time are showing different results
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/siddii/angular-timer/issues/120#issuecomment-249628605, or mute the thread https://github.com/notifications/unsubscribe-auth/ASyfRonXKUHVpkrjHSHijqH3ZuHf9m0tks5qt_iJgaJpZM4Ct6Ll .
I don't understand you. (I am not getting you) I tell you that timer doesn't work correctly and you in order to write some advise, are writing ( I am not getting you )