Reputation: 355
Why is my timer tag not working in Angularjs? I used the following code
<timer interval="1000" countdown="100">{{countdown}}</timer>
Also, how to alert the timer minutes and seconds while I click the get time button given in the plunker?
Here is the plunker: http://plnkr.co/edit/u4kaFALY0TkUxipjvG0p?p=preview
Upvotes: 0
Views: 484
Reputation: 72849
Include your script after including libraries like jQuery / angular:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="https://dl.dropboxusercontent.com/u/8824346/angular-timer.js"></script>
<script src="script.js"></script> <!-- Moved this one after the libraries above. -->
Upvotes: 2