title: AngularJS - ng-repeat over array with string index
body: <p>How to <code>ng-repeat</code> over array with string index? Please see below snippet of the code-</p>
  
  <p>Below code is in a controller.</p>
  
  <pre><code>$scope.days = ["mon", "tue", "wed" .... "sun"];
  $scope.arr = [];
  $scope.arr["mon"] = ["apple","orange"];
  $scope.arr["tue"] = ["blue","swish"];
  .
  .
  .
  $scope.arr["sun"] = ["pineapple","myfruit","carrot"];
  </code></pre>
  
  <p>Question - How to <code>ng-repeat</code> like something below, is it possible?</p>
  
  <pre><code>&lt;div ng-repeat="day in days"&gt;{{day}}
      &lt;span ng-repeat="item in arr(day)"&gt;{{item}}&lt;/span&gt; 
      &lt;-- Something like "arr(day)", can it be done in angular --&gt;
  &lt;/div&gt;
  </code></pre>