I want to get the hour and minute data of the Angular Timer and play in a variable to save in the bank, how do I?
I want to get the hour and minute data of the Angular Timer and play in a variable to save in the bank, how do I?
Stop Timer with a broadcast:
$scope.$broadcast('timer-stop');
At the same time, monitor the event timer-stopped
, and capture the object containing the timer state:
$scope.$on('timer-stopped', function (event, data){
console.log(data);
});
The object will contain the following properties:
days
hours
millis
minutes
seconds
timeoutId