Created
August 12, 2017 21:21
-
-
Save matthieu-D/fb454ebf0d97a3f9b82e974c651e09ca 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
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