angular-timer icon indicating copy to clipboard operation
angular-timer copied to clipboard

Callback for matching a time of timer countdown

Open sesubash opened this issue 11 years ago • 7 comments

It would be useful if there is a callback if the timer matches a particular time during countdown timer.

sesubash avatar Oct 13 '14 08:10 sesubash

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.

Shawful avatar Dec 08 '14 02:12 Shawful

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();
    };

arindambiswas avatar Sep 04 '15 13:09 arindambiswas

Doesnt work

gagikmkrtchyan1987 avatar Sep 23 '16 19:09 gagikmkrtchyan1987

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 .

Shubhdeepsingh avatar Sep 26 '16 04:09 Shubhdeepsingh

Countdown timer ticks slower, multiple timers starting at the same time are showing different results

gagikmkrtchyan1987 avatar Sep 26 '16 16:09 gagikmkrtchyan1987

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 .

Shubhdeepsingh avatar Sep 28 '16 05:09 Shubhdeepsingh

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 )

gagikmkrtchyan1987 avatar Sep 28 '16 21:09 gagikmkrtchyan1987