I have added an externalized properties file in Config.groovy
file. Such as:
grails.config.locations << "file:app-test-config.properties"
And this how my externalized properties file app-test-config.properties
look like:
SERVER_IP_ADDRESS = 123.456.789.0 SERVER_PORT= 1234
I am using AngularJs framework and I have a javascript file in assets
directory. Now, I want to access the server IP and Port in that javascript file.
How this can be possible? Is there any way to use Holder
or grailsApplication
in javascript file to read attributes from externalized properties file?