I have defined constant in my application as follows,
angular.module('configuration', [])
.constant('Engine_API', 'http://sample.io:1929/')
And i am using in the application as follows,
var testApp = angular.module('Duot', [ 'configuration']
testApp .controller('userProfileCtrl', function ($scope,Engine_API) {
}
is there a way i can modify and set a new value to the constant in run time?
value..value('myData', { Engine_API: 'http://sample.io:1929/' });You can then access and updatemyData.Engine_APIas desired.