たとえば、次の呼び出しがあります。
$http({method: 'GET', url: '/someUrl'}).
success(function(data, status, headers, config) {
// this callback will be called asynchronously
// when the response is available
}).
error(function(data, status, headers, config) {
// called asynchronously if an error occurs
// or server returns response with an error status.
});
http://my-api-url.com/someUrlを要求するために必要ですが、将来変更されるため、どこにでも入力したくありません。
グローバルに設定するにはどうすればよいですか?