title: How set ngClick only for $first element in ngRepeat?
body: <p>How can ng-click be assigned to the <code>$first element</code> in ng-repeat? In the below code <code>doSomething()</code> should be called only when the first input is clicked. The remaining inputs shouldn't have ng-click handlers assigned. I've found examples of how to use <code>$first</code> with ng-class or ng-show but not with ng-click.</p>
  
  <pre><code>&lt;div ng-repeat="item in items"&gt;
    &lt;input type="checkbox" ng-click="doSomething()"/&gt;{{item.name}}
  &lt;/div&gt;
  </code></pre>