Countdown set function and emit 0 as last value
Countdown set function and emit 0 as last value

With the listener one can set the countdown value using
$broadcast('countdown-set', value). This might be an edge case, but I
need to set a new countdown. Issue #23 describes how to set the value on
initialization but using this one can change the value whenever
necessary.

Also changed the order of execution of some code to make 0 the last
emitted millis value for a countdown. In the original code the last emit
message was the value just
before 0. For example with a countdown with an interval of 1000 the last
emitted millis value was 1000.

staff0rd/angular-timer,idomaz00/angular-timer,rolemos/angular-timer,webconnex/angular-timer,kasoprecede47/angular-timer,RobinHerzog/angular-timer,siddii/angular-timer,justicart/angular-timer,GeroLauvergnat/angular-timer,Jeremy017/angular-timer,justicart/angular-timer,benfes/angular-timer,ruelluna/angular-timer,Verarxar/angular-timer,jayvi/angular-timer,Jeremy017/angular-timer,andresmatasuarez/angular-timer,akiokio/angular-timer,seawenzhu/angular-timer,rolemos/angular-timer,jayvi/angular-timer,DarthVanger/angular-timer,lvpeng/angular-timer,suryasingh/angular-timer,WillianPaiva/angular-timer,akiokio/angular-timer,DarthVanger/angular-timer,staff0rd/angular-timer,hloni2major/angular-timer,Verarxar/angular-timer,lvpeng/angular-timer,GeroLauvergnat/angular-timer,siddii/angular-timer,idomaz00/angular-timer,WillianPaiva/angular-timer,benfes/angular-timer,maccode/angular-timer,leonuh/angular-timer,RobinHerzog/angular-timer,webconnex/angular-timer,leonuh/angular-timer,maccode/angular-timer,kasoprecede47/angular-timer,andresmatasuarez/angular-timer,ruelluna/angular-timer,seawenzhu/angular-timer,hloni2major/angular-timer,suryasingh/angular-timer