Skip to content

Instantly share code, notes, and snippets.

@strogonoff
Created August 5, 2013 20:34
Show Gist options
  • Select an option

  • Save strogonoff/6159373 to your computer and use it in GitHub Desktop.

Select an option

Save strogonoff/6159373 to your computer and use it in GitHub Desktop.

Revisions

  1. strogonoff created this gist Aug 5, 2013.
    18 changes: 18 additions & 0 deletions config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    /*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 || {}));

    })();