title: How to add ng-click event on only last item of ng-repeat?
body: <p>I want to add click event on <strong>only last item</strong> of list of items. </p>
  
  <pre><code> &lt;li ng-repeat="item in items" ng-click="myFunction" &gt;{{item.name}}&lt;/li&gt;
  
      $scope.myFunction = function(){
       // logic here...
      }
  </code></pre>