Example
pixelbits did not work for me. I needed to make a little change to do this.
Recording Constants
var app = angular.module('module',[]); app.constant('APIprefix', '/api');
Reading from Angular
var prefix = angular.injector(['ng', 'module']).get('APIprefix');
Thanks pixelbits for showing me the way :)
SM Adnan
source share