Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <ion-list *ngFor="let p of pages; let i = index;">
  2. <ion-item>
  3. <ion-icon *ngIf="p.icon !== undefined" class="icon-{{ p.icon }}"></ion-icon>
  4.  
  5. <button menuClose (click)="openPage(i)">
  6. {{ p.title | translate }}
  7. </button>
  8.  
  9. <ion-icon
  10. [ngClass]="{'active': isGroupShown(i) }"
  11. name="arrow-forward"
  12. (click)="toggleGroup(i)"
  13. *ngIf="p.content !== undefined">
  14. </ion-icon>
  15. </ion-item>
  16. <ion-list *ngIf="isGroupShown(i)" class="submenu">
  17. <button detail-none ion-item menuClose *ngFor="let row of p.content; let j = index" (click)="openSubPage(i, j)" class="submenu-item">
  18. {{ row.title | translate }}
  19. </button>
  20. </ion-list>
  21. </ion-list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement