I'm encountering an issue with the ng-click event not triggering when clicking on an item within an Ionic modal. Despite seeing the item change color upon click, my console.log statement within the joinGroup function does not output anything to the console.
Even after attempting to use ion-list and ion-item elements, I still couldn't get it to work.
<ion-modal-view>
<ion-header-bar class="bar bar-header bar-balanced">
<h1 class="title">Join Court</h1>
<button class="button button-clear button-primary" ng-click="modal.hide()">Done</button>
</ion-header-bar>
<ion-content class="padding">
<div class="list">
<div class="item item-icon-right" ng-repeat="group in groups" ng-click="joinGroup(group)">
<h2>{{group.name}}</h2>
<p>{{group.address}}</p>
</div>
</div>
</ion-content>
</ion-modal-view>
var joinGroup = function (group) {
console.log("Call joinGroup");