Created
February 6, 2015 21:34
-
-
Save kmaida/10aeb3942221eb940a95 to your computer and use it in GitHub Desktop.
AngularJS - sort by value
This file contains 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
$scope.orderByValue = function(value) { | |
return value; | |
} | |
// usage: ng-repeat="item in items | orderBy:orderByValue" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment