mercredi 18 avril 2018

api response to model map in ember js

So I have a doubt regarding the ember data. My API returns a list of names (employee names), and when I make a query like this.get('store').query('employees') and try to see all the names returned, it is not getting printed. One of the possible reason which I thought was that ember is trying to map returned response to employee model and since returned response is just a list of strings, it is not able to map it correctly. Anyone has any idea what can be a possible fix for it, or is my understanding not correct?




Aucun commentaire:

Enregistrer un commentaire