angular.module('GR.app',html
[ 'ngResource', 'ionic' ])app
.config(function($stateProvider, $urlRouterProvider,$ionicConfigProvider){ionic
$ionicConfigProvider.tabs.position('bottom');ide
}]);url
//禁止側滑事件htm
$ionicSideMenuDelegate.canDragContent(false);事件
$scope.toggleLeft = function() {
$ionicSideMenuDelegate.toggleLeft();
};ip
$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>
//禁止側滑後退事件it
$ionicConfigProvider.views.swipeBackEnabled(false);io
overflow-scroll="true" style="overflow: hidden" 禁用內容滾動