dimanche 14 avril 2019

How to iterate a JSON payload in ember-infinity?

I'm getting the data using API request from "http://example.com/people.json". The response data will be like following code.

{ 
 people: [
   { 
     name: 'Andrew Thomson',
     age: 32
   },
   { 
     name: 'Callum Falconer',
     age: 28
   },
   { 
     name: 'Evelia',
     age: 26
   }
 ],
 'meta': {
   'total': 20,
   'total_pages': 2,
   'page': 1
  }
}

I need to iterate this response using ember-infinity. How do I make this work with ember-infinity?




Aucun commentaire:

Enregistrer un commentaire