title: Angularjs ng-click: how to get `this` data?
body: <p>Let say I have this item in the list with angular <code>ng-click</code> event.</p>
  
  <pre><code>&lt;a data-id='102' ng-click='delete()'&gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>How can I get the data/ info if <code>this</code> then?</p>
  
  <pre><code>        $scope.delete = function() {
  
               var id = $(this).attr('data-id');
               console.log(id); // I want to get 102 as the result
               if (confirm('Are you sure to delete?')) {
                  $('#contactsGrid tr[data-id="' + id + '"]').hide('slow');
  
              }
           };
  </code></pre>