Showing posts with label angular timer. Show all posts
Showing posts with label angular timer. Show all posts


May 14, 2017

A simple, re-usable, inter-operable timer directive

Getting started

Demo -
With any of the following options...
 * Download the latest script file -  
 * Clone the repo -  
 * Install angular-timer using [Bower]( - bower install angular-timer  
 * Add timer to your list of modules  


With Bower install :
 * Install humanize-duration using [Bower]( - bower install humanize-duration  
 * Install momentjs using [Bower]( - bower install momentjs  
And include these scripts in your webpage :
 * bower_components/momentjs/min/moment.min.js  
 * bower_components/momentjs/min/locales.min.js  
 * bower_components/humanize-duration/humanize-duration.js  

Running locally

Install all bower components - bower install Using Grunt type grunt from command line, the default task will open index.html page in your default browser

Running tests

Following command will run both unit & End-to-End (e2e) tests
 grunt tests  


There are some examples on the index page Please go over them to get an understanding on how this module works.

Note: Special thanks to Siddique Hameed

Disclaimer: The blog is created to share angular directives information to geek, curious Angular Developers.