title: Access $scope.property inside ng-repeat loop
body: <p>How do I access a property on the <code>$scope</code> from within the <code>ng-repeat</code> loop? In the code below, the thumbnail index is set on the controller. The view need to use this property from inside <code>ng-repeat</code>.</p>
  
  <pre><code>//Controller
      $scope.thumbnailIndex = 4;
  
  //View
          &lt;div id="album"&gt;
              &lt;ul id="photosList"&gt;
                  &lt;li ng-repeat="photo in photos"&gt;
                      &lt;img ng-src="{{photo.thumbnails[??].url}}" ng-click="details(photo.id)"/&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;        
          &lt;/div&gt;
  </code></pre>