title: How to reach variable outside the ng-repeat scope
body: <p>Is possible to reach variable outside the ng-repeat scope?</p>
  
  <p>jsfiddle:
  <a href="http://jsfiddle.net/zcbhubrw/" rel="nofollow">http://jsfiddle.net/zcbhubrw/</a></p>
  
  <p>Here is the code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="section" ng-app="phonecatApp" ng-controller="PhoneListCtrl"&gt;
              &lt;div class="slide" &gt;
                  &lt;div class="container"&gt;
                      &lt;h2 class="section-title"&gt;Selected Mobiles&lt;/h2&gt;
                  &lt;/div&gt;
                  &lt;div class="container-fluid fix ver2"&gt;
                      &lt;div class="col-md-3 work-thumb" ng-repeat="phone in phones"&gt;
                          &lt;a href="#" ng-click="count = {{$index}}"&gt;
                              {{phone.name}}
                          &lt;/a&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
      &lt;p&gt;Count: {{count}}&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>var phonecatApp = angular.module('phonecatApp', []);
  
  phonecatApp.controller('PhoneListCtrl', function ($scope) {
    $scope.phones = [
      {'name': 'Nexus S',
       'snippet': 'Fast just got faster with Nexus S.'},
      {'name': 'Motorola XOOM™ with Wi-Fi',
       'snippet': 'The Next, Next Generation tablet.'},
      {'name': 'MOTOROLA XOOM™',
       'snippet': 'The Next, Next Generation tablet.'}
    ];
  });
  </code></pre>
  
  <p>I need to reach the <strong>{{count}}</strong> variable for further usage.  </p>