Reputation: 61
i've been modifying my popup menu inside side menu for a while in ionic framework, and trying to close the side menu on click from the button i've created in the popup. Are there any possible way to do so ?
Upvotes: 4
Views: 5539
Reputation: 942
For close menu:
$ionicSideMenuDelegate.toggleLeft(false);
code from ionic:
Upvotes: 0
Reputation: 33345
function ContentController($scope, $ionicSideMenuDelegate) {
$scope.toggleLeft = function() {
$ionicSideMenuDelegate.toggleLeft();
};
}
Upvotes: 7