load config at runtime

390
0
07-19-2017 04:34 PM
LefterisKoumis
Occasional Contributor III

I have a number of config.json files under the config folder of the app and I was wondering if I can select the config.json file based on the user's action at runtime.  In other words, can I use something like this.config="configA.json"? If yes, what is the proper path syntax to point to the correct json file? 

I know another way is to use the custom config as a url parameter but this app is not possible.

Ideas?

Thank you.

0 Kudos
0 Replies