Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

pass value from one component to another

Avatar

Level 2

Hi,

i have a problem, please help me.

i have to pass a value from one component to another, but condition is that both component will be used in same page . and updation of one value in one component should update the value on other component.

plz guide me how to achieve  this

1 Accepted Solution

Avatar

Correct answer by
Level 10

To pass data around in CQ - simply have component A write data to node C and then have component B read the data from node C. Likewise, component B can update node C and component A will see the updates. 

Hope this helps.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

To pass data around in CQ - simply have component A write data to node C and then have component B read the data from node C. Likewise, component B can update node C and component A will see the updates. 

Hope this helps.