Created
September 17, 2015 15:08
-
-
Save matthewbednarski/4717eac069483ffd3cfa to your computer and use it in GitHub Desktop.
provides injectable versions of lodash and moment global variables
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
(function(){ | |
var app = angular.module('mcbGlobals', []) | |
.service('lodash', [Lodash]) | |
.service('moment', [Moment]); | |
function Lodash() { | |
return window._; | |
} | |
function Moment() { | |
return window.moment; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment