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.
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.
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.