Ember.js Undefined retrieving property of a model -
I found this model, where there is an array of site sites:
app topology = D. Mod. Extension ({name: DS.TRR ('string'), site: DS.ETT ()}); And I am trying to retrieve this array in a calculated asset:
return.filterBy ('name', This.get ('selectedName'.)) ('Site'); The filter returns the return value:
& lt; App Topology: ember411: 1 & gt; But with the receiving ('site') it is undefined.
Are you sure that the filter does not return an array? Therefore [and lieutenant; App Topology: ember411: 1> Something like this will be done, see if it returns an orange, you can use the first object property:
return.filterBy ('name', this.get ('selectedName')). Get ('firstObject'). ('Site');
Comments
Post a Comment