I use the tutorial from http://codepen.io/jhasselkus/pen/Efaxw to create a stopwatch.
The stopwatch displays the action in milliseconds.
In my case I only need seconds or minutes.
I thought update-interval
which is used should be in the beginning.
.controller('MainCtrl', function($scope, $interval) {
$scope.version = angular.version.full;
// The main controller maintains the current time for all stopwatch instances.
$scope.sharedTime = new Date();
$interval(function() {
$scope.sharedTime = new Date();
}, 500);
})
The update interval is here 500 ms.
I changed it to 10000 or to 50000 but nothing changed on the website. What is need to be changed to display the timer in minutes or seconds? And why the change of the value "500" doesn't affect anything?