mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +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
28 lines
637 B
HTML
28 lines
637 B
HTML
<ion-header>
|
|
|
|
<ion-navbar>
|
|
<button [menuToggle]="activeMenu">
|
|
<ion-icon name="menu"></ion-icon>
|
|
</button>
|
|
<ion-title>
|
|
Menu
|
|
</ion-title>
|
|
</ion-navbar>
|
|
|
|
</ion-header>
|
|
|
|
|
|
<ion-content padding>
|
|
|
|
<h4>Active Menu: <b primary>{{ (activeMenu == 'menu1') ? 'Menu 1' : 'Menu 2' }}</b></h4>
|
|
|
|
<p>This page has two menus with different id's, but only one is active at a time.</p>
|
|
|
|
<button block secondary (click)="menu1Active()">Make Menu 1 Active</button>
|
|
|
|
<button block danger (click)="menu2Active()">Make Menu 2 Active</button>
|
|
|
|
<button block [menuToggle]="activeMenu">Toggle Menu</button>
|
|
|
|
</ion-content>
|