Ember lookup property from inside custom component


#1

Say I have a custom component as my-panel

And in the backing JS (my-panel.js)

this.get('targetObject')

Also I reference/use this component from another custom component say “my-sections.hbs” as

{{my-panel}}

My question is when I do

this.get('targetObject') //Called inside my-panel.js

How/Where does it lookup the property “targetObject” in ? What does the chain look like?


#2

You have to send targetObject from component-1 to component-2. How are you trying to do that right now?