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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -