Control the ion content when slide menu is opened


How to prevent auto close of ion-menu if I clicked everywhere outside the menu

Now: after the menu is opened, if I clicked everywhere outside the menu, it closed by itself.

also, how can I add an on click event on the right content of the left menu content


i resolve with my self
just add this function in viewdidload function

  ionViewDidLoad() {

    (<any>[0].__proto__._after = function (isOpen) {
      (void 0) /* assert */;
      this._app.setEnabled(false, 100);
      this.isOpen = isOpen;
      this._isAnimating = false;
      if (isOpen) {
      else {

to override ionic function that close the menu when clicking on the outside of the menu