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

Why does Ember Data sometimes have ObjectProxy or ArrayProxy?

$
0
0

@niamleeson1 wrote:

I have an Address model that is like this:

addressable: DS.belongsTo('addressable', { polymorphic: true }),
country: DS.belongsTo('country', {async: false}),
region: DS.belongsTo('region', {async: false}),

Here, addressable is accessed via an ObjectProxy. But region and country are not accessed via ObjectProxy. I am pre-loading all countries and US-regions via meta tag. Is pre-loading the reason why the two models do not have ObjectProxy generated for them?

Thank you.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles