/angular-simple-countdown

a simple countdown angular directive with multiple language.

Primary LanguageJavaScriptMIT LicenseMIT

angular-simple-countdown

a simple countdown angular directive with multiple language. It is improvement of the simple-inline-countdown-directive

Installation

Bower

bower install angular-simple-countdown

local
<script src="bower_components/angular-simple-countdown/lib/countdownTimer.min.js"></script>
local
<script src="lib/countdownTimer.min.js"></script>

Usage

var myApp = angular.module('app', ['countdownTimer']);

<strong countdown end-date="1-9-2015" units="days|hours|minutes|seconds"></strong>
<span countdown end-date="2-9-2015" units="weeks"></strong>
<strong countdown end-date="01-11-2016" lang="TR" units="days|hours|minutes|seconds"></strong>

Field Schema

countdown: initializes directive

end-date: the end date. takes any format js Date() allows

units: which units you want the countdown to be viewed in

lang:lang="TR"