<ion-menu [content]="content">
    <ion-header>
        <ion-toolbar color="primary">
            <ion-title>Menú</ion-title>
        </ion-toolbar>
    </ion-header>

    <ion-content>
        <ion-list inset>
            <button ion-item menuClose>
                <ion-icon color="primary" name="home" style="padding-right: 25px;"></ion-icon>
                Inicio
            </button>

            <div *ngFor="let e of entries">
                <ion-list-header>{{ e.title }}</ion-list-header>
                <button ion-item menuClose *ngFor="let p of e.pages" (click)="openPage(p)">
                    <ion-icon color="primary" name="{{ p.icon }}" style="padding-right: 25px;"></ion-icon>
                    {{ p.title }}
                </button>
            </div>
        </ion-list>
    </ion-content>

</ion-menu>

<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
