Countdown Timer Angular Directive

So I needed a countdown timer for a release date to put on the top of a website I was working on. Now-a-days I write angular fairly exclusively so what better way than to make a sweet angularJS directive for my timer. It’s pretty straight forward, the data attributes bind the directive and pass the end-date for the time to count to. The rest is a simple interval timer calculating the difference between time.now() and the end-date.

Update: To the moon… @codepen.

codepen gareth weaver

Leave a Reply