Harris
Harris

Reputation: 61

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 ?

Upvotes: 4

Views: 5539

Answers (2)

Max
Max

Reputation: 942

For close menu:

$ionicSideMenuDelegate.toggleLeft(false);

code from ionic:

enter image description here

enter image description here

Upvotes: 0

Aaron Saunders
Aaron Saunders

Reputation: 33345

function ContentController($scope, $ionicSideMenuDelegate) {
  $scope.toggleLeft = function() {
    $ionicSideMenuDelegate.toggleLeft();
  };
}

Upvotes: 7

Related Questions