2

I have seen this question and the solution was pretty straightforward, however this plunker doesn't seem to work with Angular 1.33 which I use in my project.

Here is the same plunker with the issue (only updated Angular to version 1.33) .

Html

  <table ng-table="tableParams" show-filter="true" class="table">
    <tr class='listing' ng-repeat="invoice in $data">
      <td data-title="'Invoice No.'" sortable="'no'" filter="{'no':'text'}">
        {{invoice.no}}
      </td>
      <td data-title="'Date'" sortable="'date'" filter="{'date':'text'}">
        {{invoice.date}}
      </td>
      <td data-title="'Client'" sortable="'client.fullname'" filter="{'client.fullname':'text'}">
        {{invoice.client.fullname}}
      </td>
    </tr>
  </table>
Community
  • 1
  • 1
Walid Ammar
  • 4,038
  • 3
  • 25
  • 48

1 Answers1

1

working with sort and filter,ngtable 0.3.1 - plunk

<table ng-table="tableParams" show-filter="true" class="table">
    <tr class='listing' ng-repeat="invoice in $data">
      <td data-title="'Invoice No.'" sortable="'no'" filter="{'no':'text'}">
        {{invoice.no}}
      </td>
      <td data-title="'Date'" sortable="'date'" filter="{'date':'text'}">
        {{invoice.date}}
      </td>
      <td data-title="'Client'" sortable="'client.fullname'" filter="{'client':'text'}">
        {{invoice.client.fullname}}
      </td>
    </tr>
  </table>
Kostia Mololkin
  • 868
  • 9
  • 25
  • 1
    Thanx `Kositia` your solution is working as expected... but I am hoping if there is ability to filter on multiple nested fields... for now this enough for me... thanks again. – Walid Ammar Nov 25 '14 at 10:41
  • 1
    @MohammadWalid i am glad to help, so u would like to filter over all props of client object, right?, it's interesting for me too,i'll gonna make some research on that and come back))) – Kostia Mololkin Nov 25 '14 at 11:47