Skip to content

Instantly share code, notes, and snippets.

@strogonoff
Created August 5, 2013 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strogonoff/6159373 to your computer and use it in GitHub Desktop.
Save strogonoff/6159373 to your computer and use it in GitHub Desktop.
AngularJS configuration module
/*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