angular-timer
angular-timer copied to clipboard
go to link when timer stop
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>
You can use the listner 'timer-stopped' to make the redirection : $scope.$on('timer-stopped', function (event, data){ //redirection });
this works perfectly for me, thanks
you are welcome :)