How-to-disable-drag-in-side-menu

<ion-menu [content]="content" [swipeEnabled]="false">
  <ion-toolbar>
    <ion-title>Menu</ion-title>
  </ion-toolbar>
  <ion-content class="outer-content">
    <!-- <img src="img/Logo2.fw.png" /> <div class="list"> -->
    <ion-list>
      <button ion-item menuClose *ngFor="let p of pages" (click)="openPage(p)">
        <ion-icon item-left [name]="p.icon"></ion-icon>
        {{p.title}}
      </button>
    </ion-list>
  </ion-content>

</ion-menu>


<!-- main navigation -->
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

Change the [swipeEnabled] to remove the braces.

<ion-menu [content]="content" swipeEnabled="false">

Using [] means that the property expects something in your class to be this.false. Not what you want.

1 Like

thanks it worked
but its also work for me when it was in []

It works!
Thanks @mhartington :smiley: