Skip to content

Instantly share code, notes, and snippets.

@mlakkadshaw
Created October 6, 2013 07:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mlakkadshaw/6850612 to your computer and use it in GitHub Desktop.
Using underscoreJS with angular
var underscore = angular.module('underscore', []);
underscore.factory('_', function() {
return window._; // assumes underscore has already been loaded on the page
});
@strewhella
Copy link

You can use the value method - underscore.value('_', _);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment