0

how implement pagination and searching on json in angularjs. I have seen multiple example on list to implement pagination like below

How to do paging in AngularJS?

Angularjs - Pagination appear after search filter

But i need to do on js object not on json array(or list). May be simlar to Pagination on JSON Data in Angular

sample data

  {"a":"hsdhs","b":"hsdhs","c":"hsdhs","d":"hsdhs","e":"hsdhs","f":"hsdhs","g":"hsdhs"}

if iam there in page no 2 and page size is 3. then i need only

     {"d":"hsdhs","e":"hsdhs","f":"hsdhs"}

Can some one help me findout this.

Thank you

Community
  • 1
  • 1
Yugandhar
  • 333
  • 1
  • 4
  • 13
  • Convert the Object to an Array with a custom Angular Filter could be an option. Then the pagination will be easier to handle. – Manu Obre Dec 17 '16 at 18:36
  • Basically i am reciving array for some other process i need to get converted to object. I cant convert back and show on ui. No other method for object pagination ? – Yugandhar Dec 18 '16 at 02:34
  • Could you provide a plnkr so I can help you. – Manu Obre Dec 18 '16 at 12:53

0 Answers0