简体   繁体   中英

Read file in directory Aurelia

How can I get list of files of directory in Aurelia? I have relative path to resources which I want to list.

Require('fs') does not work in Aurelia. What else can I do?

You cant. My suggestion would be to make an api call that returns you a list of available files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM