I have the following line:
and in my controller I have:
$scope
<button data-id="101" ng-click="showDetail($event)">click Me</button> $scope.showDetail = function(event) { console.log($(event.target).attr("data-id")); }
I solved this:
<a href="#" id="12345" data-ng-click="ShowId($event)"> $scope.ShowId = function(event) { alert(event.target.id); };