Is there an easy way to enable or disable the side-menu based on what template is loaded in the view or does this have to be completed through a function?
If it does need to be manipulated within the controller, what would that code look like?
Is there any sort of tag like the has-header in ion-content or hide-back-button in ion-view that can be added to disable the side-menu?
You very well may want to setup your views so that you have a main template file that will be used for views that need a menu and a completely other main template file that would be used for views that donāt need a side menu.
Thanks, I saw those other posts in my search prior to posting, but they didnāt really seem. That blog, on the other hand, is written about the exact same issue Iām facing.
For immediate term Iām just disabling drag. When I have time Iāll dig into the router to gain better understanding and solve it the right way like in that blog post.
Was hoping there was an easier way, maybe a directive that looks for dragDisabled in the ion-view tag which disables dragging to the side menu. I could see it being an issue for highlighting text and other applications that could mistakenly trigger the side menu.
Iāve resolved what Iām doing in my app, so no further assistance needed on this, but the drag-disabled still isnāt working for me on either of the plunkers you posted.
I created a quick youtube of my interaction with the latest plunker in case it might help you diagnose any problems with the framework. Iām not comfortable making the link public, so shoot me an email at info (at) origindev (dot) com and Iāll send you the link.
hi⦠today i was just working on this: a secondary (disabled by default) sidemenu. to be activated and show only on subpage 8i use it to show the āchaptersā of the book to be read.
Thanks for the input. I just watched your YouTube post and saw you were using Firefox. You are right - in Firefox the no-drag-right and drag-content="false" doesnāt work.
Being that Ionic doesnāt really support desktop, I guess itās not āreallyā a bug. Also keep in mind that I made that little demo; so, itās far from perfect and certainly not official.
Despite that, itās an interesting issue. It makes me wonder what would happen on a FireFox OS device. The devs have one; so, I will ping them to see whatās up.