Control the ion content when slide menu is opened


#1

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


#2

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

  ionViewDidLoad() {

    (<any>this.menu)._menus[0].__proto__._after = function (isOpen) {
      (void 0) /* assert */;
      this._app.setEnabled(false, 100);
      this.isOpen = isOpen;
      this._isAnimating = false;
      this._events.unlistenAll();
      if (isOpen) {
        this.ionOpen.emit(true);
      }
      else {
        this.ionClose.emit(true);
      }
    };
    
  }

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