title: how to access outer scope inside the ng-repeat in a directive
body: <p>I have a directive, inside a link function, i have a scope variable which I need to access inside 'ng-repeat'. But it is not picking up the value.</p>
  
  <p>I have tried using $parent also went through couple of answers, but still it doesn't work.</p>
  
  <p>This is what I tried:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div ng-controller="MyCtrl"&gt;
      &lt;div my-directive ng-repeat="item in items" item='item'&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Fiddle Link:</p>
  
  <p><a href="http://jsfiddle.net/Zzb58/40/" rel="nofollow">Demo</a></p>