Disable ionic's sidemenu content drag to toggle menu
Disable ionic's sidemenu content drag to toggle menu
Associate the state with a controller:
$stateProvider .state('app', { url: "/app", abstract: true, templateUrl: "pages/menu.html", controller: 'MenuController' })
Run the config when the view is completelly loaded:
.controller('MenuController', function($scope, $ionicSideMenuDelegate){ $scope.$on('$ionicView.loaded', function(){ $ionicSideMenuDelegate.canDragContent(false); }); })
留言
張貼留言