title: How to get $index of angular.forEach
body: <p>how can i get a $index of items angular.forEach()?</p>
  
  <p>I want some like this:</p>
  
  <pre><code>$scope.data = {
    "name": "foo",
    "info": "bar"
  }
  
  angular.forEach($scope.data, function (value, key) {
  
    console.log($index + ' - ' + value.name + ' - ' + value.info)
  
  })
  </code></pre>