ionic $ionicPopover 팝업 상자

1705 단어
$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>

좋은 웹페이지 즐겨찾기