In order to call the service from within the configuration, I initially wrote code in the configuration like this:
.constant('apiEndpoint', 'www.example.com') // using constant function
This was working fine.
Now my goal is to remove the code above from the configuration and instead use a JSON file. Here is the JSON data:
{
"apiEndpoint":"www.example.com" // data in JSON format
}
I want to be able to read this data in the configuration. Thank you for your help in advance.