Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 12, 2017 21:21
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/fb454ebf0d97a3f9b82e974c651e09ca to your computer and use it in GitHub Desktop.
Save matthieu-D/fb454ebf0d97a3f9b82e974c651e09ca to your computer and use it in GitHub Desktop.
goDown = (item) => {
let childName = this.items[0].name;
let childNativeURL = this.items[0].nativeURL;
const parentNativeURL = childNativeURL.replace(childName, '');
this.savedParentNativeURLs.push(parentNativeURL);
var reader = item.createReader();
reader.readEntries(
(children) => {
this.ngZone.run(()=> {
this.items = children;
})
}, this.handleError);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment