title: How to retrieve the clicked ElementId in angularjs?
body: <p>I have the following line:</p>
  
  <pre><code>&lt;a href="#" id="12345" data-ng-click="ShowId()"&gt;
  </code></pre>
  
  <p>and in my controller I have:</p>
  
  <pre><code>$scope.ShowId = function(){
       alert('clicked element id in here: 12345');
  };
  </code></pre>
  
  <p>How can I access in my controller ShowId function the id of the clicked element, in my case 12345?</p>
  
  <p>Notice the bind is not within the ng-repeat so I can access the item id or something like that.</p>