Skip to content

Instantly share code, notes, and snippets.

@pavei
Created May 10, 2017 02:41
Show Gist options
  • Save pavei/dbe82f03c6c6afb58501e66b3daf3b05 to your computer and use it in GitHub Desktop.
Save pavei/dbe82f03c6c6afb58501e66b3daf3b05 to your computer and use it in GitHub Desktop.
<ion-header>
<ion-navbar primary>
<ion-title>
Galeria de Fotos
</ion-title>
<ion-buttons end>
<button ion-button icon-only (click)="changeGrid()">
<ion-icon *ngIf="!grid" name="md-grid"></ion-icon>
<ion-icon *ngIf="grid" name="md-albums"></ion-icon>
</button>
</ion-buttons>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-grid *ngIf="images">
<ion-row>
<ion-col *ngFor="let photo of images" [attr.col-6]="grid ? true : null" [attr.col-12]="!grid ? true : null">
<div>
<img src="{{photo.url}}" imageViewer>
</div>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment