Skip to content

Instantly share code, notes, and snippets.

@chrisgriffith
Created February 25, 2017 22:37
Show Gist options
  • Save chrisgriffith/a27cf2b030b059e8e8036d2575809133 to your computer and use it in GitHub Desktop.
Save chrisgriffith/a27cf2b030b059e8e8036d2575809133 to your computer and use it in GitHub Desktop.
Ionic Split Panel: Basic Layout
<ion-split-panel>
<ion-menu [content]="content" when="xs">
<ion-header>
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<button menuClose ion-item *ngFor="let p of pages"
(click)="openPage(p)">
{{p.title}}
</button>
</ion-list>
</ion-content>
</ion-menu>
<ion-nav main [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
</ion-split-panel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment