Create for loop to add an event listener to all buttons created by ng-repeat