I have in route:
import Ember from 'ember';
export default Ember.Route.extend({
model(params) {
let city = params.city_name;
let cuc = this.store.query('city', {
linkname: city,
});
let itm = this.store.query('product', {
uriName: params.item_name,
});
let dictpage = {
currentCity: cuc,
currentProduct: itm,
};
return dictpage;
},
});
I need get attribute categoryId from cuc, but when i write there:
fot(let i in itm){
console.log(i.id);
}
dont work. How to do it?
This i need to find category from good item.
Thank you in advance for your answers!
Aucun commentaire:
Enregistrer un commentaire