Disable swipe to view sidemenu ionic 2

前端 未结 6 1051
傲寒
傲寒 2020-12-24 06:43

I\'m using a sidemenu ionic 2. when I swipe this page from left to right the side menu slides out i need to disable sidemenu swipe in particular page.

app.html

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-24 07:30

    In my case what worked was to add [swipeEnabled]="false" to ion-menu. This way I can show side menu only when the menu icon is clicked. This is based on Ionic 2 documentation: Menu.

提交回复
热议问题