Loading JSON via AJAX with NgTable parameters

后端 未结 4 1882
情话喂你
情话喂你 2021-01-11 23:06

I\'m trying to use ngTables to sort and filter data using an AJAX call. Currently I am able to replicate the data with an ng-repeat, but none of my sorting functions apply.

4条回答
  •  攒了一身酷
    2021-01-11 23:18

    
          {{user.foo}}
          {{user.bar}}
    
    

    You can directly refer data in your js no need to $scope.data = data. I tried and worked fine for me.

提交回复
热议问题