Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

How to unwrap first item in hasMany Ember Data model?

$
0
0

@Craig_Setera wrote:

I'm working with a relatively complicated domain model that is using asynchronous hasMany relationships. In my user interface, I would like to allow the user to edit the first item in that relationship. However, I'm struggling to unwrap the promise and get to the first item. The each helper is able to handle these relationships, but since I need to deal with the first item, it won't help in this case. I tried the "with" helper, but it didn't seem to properly unwrap the object either.

Can anyone suggest the proper way to handle these types of Ember Data relationships?

Thanks, Craig

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles