mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
- add spacing between imports - alphabetize imports - removed app.html files in favor of an inline ion-nav - cleaned up config demo so it uses proper syntax - use file name main.html for the first page for the demo - name the app ApiDemoApp and first page ApiDemoPage - replace the ion-toolbars with ion-navbars closes #7019 closes driftyco/ionic-site#647
42 lines
972 B
HTML
42 lines
972 B
HTML
<ion-menu #menu [content]="content">
|
|
|
|
<ion-toolbar secondary>
|
|
<ion-title>Left Menu</ion-title>
|
|
</ion-toolbar>
|
|
|
|
<ion-content>
|
|
|
|
<ion-list *ngIf="loggedIn">
|
|
<ion-list-header>
|
|
Logged in as <b>Administrator</b>
|
|
</ion-list-header>
|
|
<button ion-item menuClose *ngFor="let p of loggedInPages" (click)="openPage(menu, p)">
|
|
<ion-label primary>{{p.title}}</ion-label>
|
|
</button>
|
|
|
|
<button ion-item menuToggle>
|
|
Close Menu
|
|
</button>
|
|
|
|
</ion-list>
|
|
|
|
<ion-list *ngIf="!loggedIn">
|
|
<ion-list-header>
|
|
Please Log In
|
|
</ion-list-header>
|
|
<button ion-item menuClose *ngFor="let p of loggedOutPages" (click)="openPage(menu, p)">
|
|
<ion-label primary>{{p.title}}</ion-label>
|
|
</button>
|
|
|
|
<button ion-item menuToggle>
|
|
Close Menu
|
|
</button>
|
|
|
|
</ion-list>
|
|
</ion-content>
|
|
|
|
</ion-menu>
|
|
|
|
|
|
<ion-nav id="nav" [root]="root" #content swipeBackEnabled="false"></ion-nav>
|