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

go to link when timer stop

Open dinafouda opened this issue 9 years ago • 3 comments

Hi, I using Timer with countdown and I want to go to another page when the timer reaches 0.

<timer countdown="5000" interval="1000">{{hours}} hour{{hoursS}}, {{mminutes}} minute{{minutesS}}, {{sseconds}} second{{secondsS}}</timer>

dinafouda avatar Dec 25 '16 15:12 dinafouda

You can use the listner 'timer-stopped' to make the redirection : $scope.$on('timer-stopped', function (event, data){ //redirection });

abbeshamza avatar Jan 05 '17 01:01 abbeshamza

this works perfectly for me, thanks

dinafouda avatar Feb 02 '17 09:02 dinafouda

you are welcome :)

abbeshamza avatar Feb 02 '17 10:02 abbeshamza