Ember Data 1.0 Loading hasMany records into view
I just upgraded my application to Ember Data 1.0 and none of the hasMany
records are being loaded into my view. It looks like an async issue, but
I'm not sure how to resolve it.
All the source code can be found here: https://c9.io/bittersweetryan/mello
Here are the relevant parts of the app:
Model:
App.List = DS.Model.extend({
listName : DS.attr( ),
cards : DS.hasMany( 'card' )
});
Route (lists load fine):
App.ListsRoute = Ember.Route.extend( {
model: function() {
return this.get( 'store' ).findAll( 'list' );
}
} );
{{#each controller itemController="list"}}
<section class="list list-inline">
<h1>{{listName}}</h1>
{{#each card in cards itemController="card"}}
...
{{/each}}
</section>
{{/each}}
No comments:
Post a Comment