Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 12, 2017 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/8851e1d4435d1821dbfeb892156c13a1 to your computer and use it in GitHub Desktop.
Save matthieu-D/8851e1d4435d1821dbfeb892156c13a1 to your computer and use it in GitHub Desktop.
<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