In my code i like to pass to arguments to the function specified inside the ng-click attribute.
<
You don't need {{ }}
while specifying arguments to an event handlers (ng-click
). The correct syntax would be ng-click="deleteUser($index, user._id)
:
{{user.name}}
Here is a working plunker based on the code you've provided (check the console to see that click handler is working correctly): http://plnkr.co/edit/26A4Rj0FScPXYU7z92E6?p=preview