Skip to content

Instantly share code, notes, and snippets.

<aura:application >
<c:ChildComponent />
</aura:application>
<aura:component extends="c:AbstractBase" controller="TestApexController">
<aura:attribute name="message" type="String" default=""/>
<aura:attribute name="serverMessage" type="String" default="" description="server message assigns to this"/>
<aura:attribute name="showError" type="Boolean" default="false" />
<aura:attribute name="showServerError" type="Boolean" default="false" />
<ui:inputText label="Message" value="{!v.message}" />
<lightning:input type="checkbox" label="Show Error" name="showErrorCheck" checked="{!v.showError}"/>
<lightning:button variant="brand" label="Send Message" onclick="{! c.sendMessage }" />
<br/><br/><br/>
<aura:if isTrue="{!v.showServerError}">
<aura:component abstract="true" extensible="true" access="global" >
{!v.body}
</aura:component>
<aura:component extensible="true" abstract="true">
<aura:attribute name="record" type="String" />
In parent Component - Record: {!v.record} - {!v.body}
</aura:component>
<aura:component extensible="true" abstract="true">
<aura:attribute name="record" type="String" />
In parent Component - Record: {!v.record} - {!v.body}
</aura:component>