AngularJS - How to list the filenames from a given folder?

Harsha Vardhan picture Harsha Vardhan · Apr 6, 2015 · Viewed 14.9k times · Source

I have this folder/directory 'x' in the public folder of my application. Now I have path name till the folder i.e., /path/to/dir/x , but I don't know the names of the files in this directory. Now I need to provide URL links to the files in the html a tag's href attribute.

How do I list the name of the files in this directory?

Answer

Mente Gee picture Mente Gee · Apr 26, 2016

Angular is a client side library. Getting files from file directories is a backend capability.