In my application, I have defined a constant like this:
angular.module('config', [])
.constant('Main_API', 'http://example.com:1234/')
I am then using it in the app in this way:
var myApp = angular.module('Sample', ['config'])
myApp.controller('profileCtrl', function ($scope, Main_API) {
}
Is there a way for me to change and update the value of the constant during runtime?