Month:April 2018
Hack to make Ionic 3 Menu component static (keeping the menu open and ignoring backdrop and content clicks)
The current behaviour of the Ionic 3 Menu component doesn’t allow the menu to stay open if the user interacts with other content in the app.
There are a couple of reasons to want a static menu, with the content still in full view:
- Desktop web apps have sufficient space to show a menu and content simultaneously and we want a drawer to mimic a SplitPane
- Mobile
Subtle Ionic 3 gotchas: don’t import and push the page module you are trying to load lazily
With a page you want to be loaded lazily and not eagerly, don’t fall into the subtle trap of trying to push the module onto the stack rather than just the name of the module as a string.
In your page you wanted to have lazy loading, you probably added the decorator (or ionic CLI may have generated this for you):
@IonicPage()
right before:
@Component
In these … Read more