Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 13, 2018 05:19
Show Gist options
  • Save simpluslabs/8ca6b424d45d13994c596f3ebc608ccb to your computer and use it in GitHub Desktop.
Save simpluslabs/8ca6b424d45d13994c596f3ebc608ccb to your computer and use it in GitHub Desktop.
<aura:component >
<!--ParentComp-->
<aura:handler name="init" value="{! this}" action="{! c.doInit}" />
<aura:attribute name="noOfTimesClicked" type="Integer"/>
<aura:handler name="change" value="{! v.noOfTimesClicked}" action="{! c.handleChange}" />
<lightning:button variant="base" label="UpdateClick" title="UpdateClick" onclick="{! c.handleClick }"/>
<c:ChildComp1 noOfTimesClicked="{! v.noOfTimesClicked}"/>
<c:ChildComp2 />
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment