I have two models with their own end points:
myurl.com/items
myurl.com/markets
Also, items and markets are related where in the item`s model I have
markets: DS.hasMany()
Now, in the item template when I try to access, item.markets, I want ember to use the markets model already loaded in the app. But instead it tries to make a call to http://ift.tt/2cFIvm3 which does not exist.
Is there any way to stop ember from making that call? The app does get the data from the markets model which is already loaded and the data is displayed. But I have this failed call (Error: Ember Data Request GET http://localhost:3000/items/1/markets returned a 500) in my console and I do not know how to avoid it.
Aucun commentaire:
Enregistrer un commentaire