AngularJS (ng-grid) order by original index -


when grid rendered, follows ordering of list (model) behind it. how 1 revert same natural ordering after sort column has occurred?

within ng-repeater set custom data attribute {{$index}}

<li class="sortable" ng-repeat="item in items" data-index="{{$index}}"> 

then when dom manipulated produce column sort index when rendered preserved within data-index


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -