Ionic popover passing data


#1

I have a ng-repeat and want to pass data to ionic popover but don’t know how to do it

       <div ng-repeat="availability in ctrl.Availability">
            <div class="item item-small-letter item-text-wrap">
                <h2>
                    {{availability.AvailabilityType}}
                    <button ng-click="popover.show($event)" class="popover-top button button-icon ion-gear-a"></button>
                </h2>
            </div>
        </div>

and

<ion-popover-view>
<ion-content>
    <div class="list">
        <a class="item" ui-sref="app.main.edit">
           Edit
        </a>
        <a class="item">
           Delete
        </a>
      </div>
</ion-content>

how to pass to the ionic popover template data? I want to pass the availability ID so it can delete the proper item.