I have a component that invokes another component. It looks like this:
<aura:component >
<c:dummycomponent
label="Test Amount"
elements="{!v.elems}"
data="{!v.amount}"/>
</aura:component>
What I want to do next is when information in the dummycomponent
changes a function inside the parent component's helper gets invoked.
I tried putting <aura:attribute name="onChange" type="Aura.Action" description="handles change events"/>
inside the dummycomponent
and then modify the code above to:
<aura:component >
<c:dummycomponent
label="Test Amount"
elements="{!v.elems}"
data="{!v.amount}"
onchange="{!v.testfunction}" />
</aura:component>
This did not work and I am not sure what I can try next. Any help will be appreciated, thank you.