wannix
October 10, 2016, 3:01am
1
is there anyway to disable the sidemenu
in a particular page?
as an example, at the tutorial page in the conference app the sidemenu
should not be there.(suppose flash screen of the app)
is there anyway to disable it? although there is no button to trigger the sidemenu
its coming up when swipe the edge.
1 Like
yeah i mentioned the same yesterday.
1 Like
wannix
October 10, 2016, 10:16am
4
this.menu.enable(false);
this method is used to activate the default menu when there are several.
syntax should be re corrected as this.menu.enable('menu_1', true);
osi
October 10, 2016, 10:28am
5
I didn’t get it to work in RC0, which is why I withdrew my post. Going to try it in an empty project later
yeah but by default --> sidemenus should be disabled on child views, but you can use the drag gesture to slide it in also on child views.
Or better to say --> there should be an option/attribute/property to disable/enable a sidemenu on child views
But it takes some seconds for me and not minutes
basti
March 11, 2017, 10:08am
7
Are there any news?
I still don’t know how to achieve this.
rlouie
March 11, 2017, 10:29am
8
Depends how you want to do it, but I found the best way was to simply have two navs: http://www.roblouie.com/article/344/ionic-2-hide-menu-or-tabs-for-login-screen/
1 Like
Do you mean:
ionViewWillEnter() {
this.menuController.enable(false, 'yourmenu');
this.nav.swipeBackEnabled = false;
}
ionViewWillLeave() {
this.menuController.enable(true, 'yourmenu');
this.nav.swipeBackEnabled = true;
}
?
basti
March 11, 2017, 6:15pm
10