Skip to content

Instantly share code, notes, and snippets.

@Rakonda
Last active February 6, 2016 23:00
Show Gist options
  • Save Rakonda/28ac3b1e13bc0f326bee to your computer and use it in GitHub Desktop.
Save Rakonda/28ac3b1e13bc0f326bee to your computer and use it in GitHub Desktop.
Angular ng-repeat in reverse
var app = angular.module('demo-reverse', []);
app.controller('itemsCtrl', function ($scope) {
$scope.items_array = ['1', '2', '3', '4', '5', '6'];
});
<div>
<div ng-repeat="item in items_array | orderBy : '-'">{{ phone }}</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment