Created
May 10, 2017 02:41
-
-
Save pavei/dbe82f03c6c6afb58501e66b3daf3b05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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