Created
January 14, 2014 19:34
-
-
Save ilguzin/8424265 to your computer and use it in GitHub Desktop.
Include UnderscoreJS into angular application as module
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
// This will simply create link to underscore libraries via wrapping it into service | |
angular.module('underscore', []) | |
.factory('_', function() { | |
return window._; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment