title: angularjs make a simple countdown
body: <p>I would like make a countDown with Angular js. this is my code:</p>
  
  <p>Html File</p>
  
  <pre><code>&lt;div ng-app ng-controller = "countController"&gt; {{countDown}} &lt;div&gt;​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
  </code></pre>
  
  <p>js File</p>
  
  <pre><code>function countController($scope){
      $scope.countDown = 10;    
      var timer = setInterval(function(){$scope.countDown--; console.log($scope.countDown)},1000);  
  }​​
  </code></pre>
  
  <p>in console.log it works I have a countdown but in {{countdown}} refresh it doesn't 
  could you help me please? thanks!</p>