title: How to add item which contains timer function using ng-repeat?
body: <p>I'm trying to dynamically add item which contains a timer.For now, it only update the timer value when added new item.<br>
  How to update the timer value of each item per second?</p>
  
  <p><strong>HTML</strong>
      
          </p>
  
  <pre><code>   &lt;div ng-repeat="item in items"&gt;
         ID:&lt;label&gt;{{item.id}}&lt;/label&gt; &lt;/br&gt;
         time:{{item.time}} 
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>function MyCtrl($scope) {
      $scope.items = [];
      function random(min,max) {
          return Math.floor(Math.random()*(max-min+1)+min);
      }
      $scope.addItem = function () {
          var item = {};
          item.id = random(0,10);
          item.created = new Date();
          item.timer =  setInterval(function() {
                          var cur = new Date();
                          item.time = (cur.getTime() - item.created);
                        },1000); 
          $scope.items.push(item);        
      }
  }
  </code></pre>
  
  <p><a href="http://jsfiddle.net/9DAW9/" rel="nofollow">jsfiddle</a></p>