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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -