Skip to content

Instantly share code, notes, and snippets.

@egel
Created March 4, 2016 11:29
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 egel/4dc37c20c852b18ee360 to your computer and use it in GitHub Desktop.
Save egel/4dc37c20c852b18ee360 to your computer and use it in GitHub Desktop.
angular-lodash provider
'use strict';
function _lodashProvider() {
return {
$get: function($window) {
function _getLodash() {
return $window._
}
return {
_ : _getLodash
}
}
}
}
angular.module('lodash', ['ng'])
.provider('_', _lodashProvider)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment