I have a config.json file in the root of my project with some information that can be changed: folder path, etc.
I can not create constants (angular.constant) in the code, as I said the values of the file can be changed in production.
But I need to read this file in module.config () and I'm not getting it, how can I do that?
I need something similar to what I do on Server (Node.js)
var options = JSON.parse(fs.readFileSync(require('path').dirname(require.main.filename) + '/config.json'));
Configuration file:
{
"port": "3000",
"ipserver": "127.0.0.1",
"portserver": "3007"
}