Over the last month, Manu has been working hard on adding an oft-requested and powerful new feature to Ionic apps: Split Panel.
With Split Panel, it’s now easy to show a responsive side menu with side-by-side navigation controllers that will display on larger screens (such as the iPhone 7 plus, tablets, and desktops) and collapse
on small screens (such as portrait mode on most smartphones). With independent navigation controllers, the menu side of the split panel can navigate independently of the content side, or they can work in concert. Finally, the menu side can be fixed or displayed as a side menu.
To help test, install the latest nightly of Ionic (
npm install --save firstname.lastname@example.org). For basic usage, simply wrap your
<ion-nav> with the new
<ion-split-panel> <ion-menu [content]="content"> </ion-menu> <ion-nav [root]="rootPage" #content swipeBackEnabled="false" main></ion-nav> </ion-split-panel>
See the e2e tests for a full example of advanced usage (API Docs coming soon). Note: Split Panel is only available on Ionic 2.x and above.