0

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

halfer
  • 19,824
  • 17
  • 99
  • 186
Ramana Uday
  • 355
  • 2
  • 6
  • 21

1 Answers1

2

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. -->

Updated, working plunker.

Cerbrus
  • 70,800
  • 18
  • 132
  • 147
  • 1
    @RamanaUday why don't give it a try yourself? It helps learning and understanding. If you have a specific question or problem, please create a new post. – nilsK Jun 30 '15 at 08:20
  • I have been trying for almost 2 hours with different functionality but not working please can u help me regarding this @nilsK – Ramana Uday Jun 30 '15 at 08:22