Skip to content

Instantly share code, notes, and snippets.

@mlakkadshaw
Created October 6, 2013 07:17
  • 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/6850655 to your computer and use it in GitHub Desktop.
//Now we can inject underscoreJS in the controllers
function MainCtrl($scope, _) {
//using underscoreJS method
_.max([1,2,3,4]); //It will return 4, which is the maximum value in the array
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment