I want a timer of 1 minute which should stop as soon as it reaches 1 minute and should call a function then. I am using angular-timer directive for this.
The code I am using in html is
<timer end-time="60000">
{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.
</timer>
I am providing end time as 60000 milliseconds(1 minute) in the attribute 'end-time'. But it is not working. When end time value is '1451628000000', then it works. Where I am going wrong ? Also help me with how to call a function when the timer finished.
Thanks in advance.