Created
August 5, 2013 20:34
-
-
Save strogonoff/6159373 to your computer and use it in GitHub Desktop.
AngularJS configuration module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint browser: true */ | |
/*global _: false, angular: false */ | |
// Configuration constants. Overrides can be specified under window.settings | |
(function () { | |
'use strict'; | |
var SETTINGS = { | |
apiBaseUrl: '/', | |
staticBaseUrl: '/static/', | |
baseUrl: '/' | |
}; | |
angular.module('client.config', []). | |
constant('settings', _.extend(SETTINGS, window.settings || {})); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment