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

Cannot access model with belongsTo relation

$
0
0

@danchann wrote:

Ember version: 3.10.2

After I changed the relation to belongsTo I get a proxy object. I have tried many different syntaxes to access it without success.

I originally had a model firstName: DS.attr(“string”), lastName: DS.attr(“string”), group: DS.attr()

then I changed group to group: DS.belongsTo("group-names")

in model/group-names I have name: DS.attr("string")

The reason that I made the change was that I’m trying to track the dirtyAttribute of the model with nested properties. This question was seen to come up a few times over the years.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles