ionic $ionicPopover 弹出框

$ionicPopover.fromTemplateUrl('popover.html',{
   scope:$scope
}).then(function (popover) {
   $scope.popover = popover;
})
$scope.showPop = function ($event) {
   $scope.popover.show($event);
}
$scope.selectPop = function (choose) {
   $scope.popover.hide();
}


<script id="popover.html" type="text/ng-template">
   
<ion-popover-view>
       
<ion-content>
           
<ion-list>
               
<ion-item ng-click="selectPop(1);">...</ion-item>
               
<ion-item ng-click="selectPop(2);">...</ion-item>
           
</ion-list>
       
</ion-content>
   
</ion-popover-view>
</script>


你可能感兴趣的:(ionic $ionicPopover 弹出框)