title: AngularJS 1: How to bind index as expression to an array in html?
body: <p>I am having little issue. I am trying to display some data using ng-repeat like that:</p>
  
  <pre><code>ng-repeat="color in apples[{{index}}].color"
  </code></pre>
  
  <p>where </p>
  
  <pre><code>$scope.index = $stateParams.index;
  </code></pre>
  
  <p>However, I get a a syntax error. </p>
  
  <p>What is a proper way to dynamically add index to array in this example? </p>