angular-timer
angular-timer copied to clipboard
end-time counting up instead of counting down
<timer end-time="endDate">{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds</timer>
$scope.endDate = (new Date(2017, 11, 12, 0, 0, 1)).getTime(); End date is supposed to be December 12,2017 at 1 second after midnight.
Counter works but counts up as if it is using start-time instead of end-time.
Problem seems to be with naming, it has to be endTime, else is doesn't work at all!
Try this: $scope.endTime = moment("01 Nov 2018 12:00:00").valueOf();