Loading JSON via AJAX with NgTable parameters

后端 未结 4 1883
情话喂你
情话喂你 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:13

    First step is to put quotes around your sortable attribute:

      {{user.foo}}
    

    ngTable expects an expression there.

    Second step is to check which version of ngTable you're using, and if it's 0.3.2 check out this ngTable issue: https://github.com/esvit/ng-table/issues/204

    Good luck)

提交回复
热议问题