I have an ng-repeat repeating some data from my table and on each card there's a button you can press, I want this button to just make an alert when you press it and this is my current code:
<div class="row" ng-repeat="data in ids">
<div class="row">
<!--<div class="col s12 m6">-->
<center>
<div class="flipcard">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<p>{{data.amount}} coin wager with {{data.posted_nickname}}
<a id="joinflip" class="right waves-effect waves-light btn"><i class="material-icons left">games</i>Play</a> </div>
</div>
</div>
</center>
</div>
</div>
And this is my JavaScript:
$(document).ready(function () {
$("#joinflip").click(
function () {
alert("Alert Message OnClick");
}
);
});
The button works outside of the ng-repeat loop but when within ng-repeat it never triggers the onclick, thanks for any help