aiao-io/aiao

View on GitHub
apps/dev-elements-angular/src/app/app.component.html

Summary

Maintainability
Test Coverage
<ion-app>
  <ion-split-pane contentId="main-content">
    <ion-menu contentId="main-content" type="overlay">
      <ion-header>
        <ion-toolbar>
          <ion-buttons slot="start">
            <ion-menu-button></ion-menu-button>
          </ion-buttons>
          <ion-title>Elements Angular</ion-title>
        </ion-toolbar>
      </ion-header>
      <ion-content>
        <ion-list>
          <ion-item routerDirection="root" [routerLink]="[m.url]" [routerLinkActive]="'selected'" *ngFor="let m of menus; let i = index">
            <ion-icon *ngIf="m.icon" slot="start" [ios]="m.icon + '-outline'" [md]="m.icon + '-sharp'"></ion-icon>
            <ion-label>{{ m.title }}</ion-label>
          </ion-item>
        </ion-list>
      </ion-content>
    </ion-menu>
    <ion-router-outlet id="main-content"></ion-router-outlet>
  </ion-split-pane>
</ion-app>