Is there any way to achieve this?
var app = angular.module('myApp', []);
app.constant('config', {
    "appName": "My App",
    "appVersion": "2.0",
    "url": "http://www.myservices.com",
    "apiUrl1": url + "/rest_service_1",
    "apiUrl2": url + "/rest_service_2",
    "apiUrl3": url + "/rest_service_3"
});
I want to avoid repeat the content of url in all my constants. Any suggestion?
 
    