Created
March 4, 2016 11:29
-
-
Save egel/4dc37c20c852b18ee360 to your computer and use it in GitHub Desktop.
angular-lodash provider
This file contains hidden or 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
'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