Created
October 6, 2013 07:17
-
-
Save mlakkadshaw/6850655 to your computer and use it in GitHub Desktop.
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
//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