I am doing one task like I am loading sample json files data list in dropdown box and it's data is displaying in the textarea for the selected json file from dropdown list(It's working fine).
But my requirement is: I want to load all these json files automatically from a folder(say: I have a test folder and it is having all these json files) instead of adding all these files separately with $http.get() in the code manually in my application, and these files list should be populated in dropdown box automatically, so if I select any json file from that dropdown list then it's data should be displayed in the textarea.
Please note that if I add any few more json files in the same test folder in the future then those list also should be populated in the dropdown box automatically. Please let me know that how can I do this ?
Sample Plkr is created.