Skip to content

Instantly share code, notes, and snippets.

@matthewbednarski
Created September 17, 2015 15:08
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 matthewbednarski/4717eac069483ffd3cfa to your computer and use it in GitHub Desktop.
Save matthewbednarski/4717eac069483ffd3cfa to your computer and use it in GitHub Desktop.
provides injectable versions of lodash and moment global variables
(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