Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Ionic close side-menu on click from popup button?

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 ?

like image 919
Harris Avatar asked Mar 17 '23 23:03

Harris


1 Answers

function ContentController($scope, $ionicSideMenuDelegate) {
  $scope.toggleLeft = function() {
    $ionicSideMenuDelegate.toggleLeft();
  };
}
like image 147
Aaron Saunders Avatar answered Apr 02 '23 08:04

Aaron Saunders