Last active
August 14, 2017 13:03
-
-
Save matthieu-D/dcbc3578f1ed3513d53cb56f2b7b28e9 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
import { Component } from '@angular/core'; | |
import { NavController, Platform } from 'ionic-angular'; | |
import { File } from '@ionic-native/file'; | |
@Component({ | |
selector: 'page-home', | |
templateUrl: 'home.html' | |
}) | |
export class HomePage { | |
items; | |
savedParentNativeURLs = []; | |
constructor(public navCtrl: NavController, public fileNavigator: File, public plt: Platform) { | |
const ROOT_DIRECTORY = 'file:///'; | |
plt.ready() | |
.then(() => { | |
this.listDir(ROOT_DIRECTORY, ''); | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment