title: undefined ng-repeat variable when passed from directive template to a controller
body: <p>I have a directive with a template that uses ng-repeat on an anchor tag creating a gallery of anchors. Each anchor also has an ng-click which when clicked calls a parent controller function. To this function is passed the ng-repeat item. </p>
  
  <p>Problem : This item when accessed inside the parent controller method is undefined</p>
  
  <p>Here is a test scenario to simulate the similar situation</p>
  
  <pre><code>&lt;testdirective func="show(x)" items="buttons"&gt;&lt;/testdirective&gt;
  </code></pre>
  
  <p><a href="http://plnkr.co/edit/43aNqFS71Jn9vOdh6AG2?p=preview" rel="nofollow noreferrer">http://plnkr.co/edit/43aNqFS71Jn9vOdh6AG2?p=preview</a></p>