Skip to content

roberthodgen/countdown

Repository files navigation

Countdown

Angular timestamp countdown directive

Install

$ bower install --save angular-timestamp-countdown

Example

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 tasks

  • $ gulp build builds, minifies, and copies src files.

About

Angular timestamp countdown directive

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors