vendredi 21 août 2015

can't access models loaded from JSON APi compound document

I have two models (category, product) loaded as compound docs through JSONAPI adapter and I can clearly see that the two models are loaded with ember inspector. The problem is I don't know how to access them in the template, because everything except using {{model}} is undefined. model has product data.

I was previously experimenting with REST API and was just returning a RSVP.hash from the route and then accessing it in the model as model.categories/products.

Any help would be appreciated!




Aucun commentaire:

Enregistrer un commentaire