Tagged Questions
17
votes
2answers
11k views
AngularJS - multiple ng-click - event bubbling
In the following example:
<li ng-repeat="item in items" ng-click="showItem(item)">
<h3>{{item.title}}</h3>
<button ng-click="remove(item)">Remove</button>
...
6
votes
4answers
7k views
Automatically pass $event with ng-click?
I know that I can get access to the click event from ng-click if I pass in the $event object like so:
<button ng-click="myFunction($event)">Give me the $event</button>
function ...