Created
August 14, 2017 12:00
-
-
Save matthieu-D/01b6f484dcb5f3d6ad999f4be8a0379e 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> | |
<ion-title> | |
Ionic File Navigation | |
</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content padding> | |
<button ion-button (click)="goUp()"> | |
Go up | |
</button> | |
<div *ngFor="let item of items"> | |
<div *ngIf="item.isDirectory" (click)="goDown(item)"> | |
Directory: {{item.name}} | |
</div> | |
<div *ngIf="item.isFile"> | |
File: {{item.name}} | |
</div> | |
</div> | |
</ion-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment