joni2back / angular-filemanager

JavaScript File Manager Material Design Folder Explorer Navigator Browser Manager in AngularJS with CSS3 Responsive (with FTP in PHP / Java / Node)
https://joni2back.github.io/angular-filemanager/
MIT License
1.76k stars 577 forks source link

Is it possible to refresh the file list via another js program #285

Closed HFO4 closed 7 years ago

HFO4 commented 7 years ago

Thanks for creating such an awesome library.And I'm wondering if it Is possible to refresh the file list using another part of js code (not an angular one)?

joni2back commented 7 years ago

It is not recommended but you can do something like

angular.element(document.querySelector('angular-filemanager > div')).scope().fileNavigator.refresh();