so currently i have
App.Mail = DS.Model.extend({
name: DS.attr('string'),
place: DS.attr('string'),
note: DS.attr('string')
});
App.Envelope = DS.Model.extend({
color: DS.attr('string'),
weight: DS.attr('string'),
name: DS.attr('string'),
mail: this.store.find('mail',{'name':this.get('name')})
});
I am looking for something of the above functionality so that in my template when i do
{{#each envelope in envelopes}}
{{content.envelope.mail.note}}
{{/each}}
Then it will print the correct the note for each mail in that each loop?
Im not sure if i am approaching this right.. but i am not sure how to get this functionality. Thanks!b