Angular timestamp countdown directive
$ bower install --save angular-timestamp-countdown
Basic usage with scope value:
<countdown end-timestamp="vm.end"></countdown>Basic usage with static timestamp:
<countdown end-timestamp="2017-01-01T00:00:00.000Z"></countdown>Using countdown as an attribute:
<span class="badge" countdown end-timestamp="vm.end"></span>Configuring the warning class application interval:
<countdown end-timestamp="vm.end" warn-seconds="30"></countdown>Configuring the danger class application interval:
<countdown end-timestamp="vm.end" danger-seconds="10"></countdown>Counts down the number of seconds to timestamp; stops at 0.
Include roberthodgen.countdown as an Angular module dependency, e.g.:
var app = angular.module('MyApp', ['roberthodgen.countdown']);See example/example.html and example/app.js for sample.
$ gulp buildbuilds, minifies, and copiessrcfiles.