Skip to content

Instantly share code, notes, and snippets.

@rsussland rsussland/foo.app
Last active Feb 24, 2016

Embed
What would you like to do?
contract violation example
App:
<aura:application >
<aura:attribute name="display" type="Boolean" default="true"/>
<ui:button aura:id="button" label="Click to toggle" press="{!c.toggle}"/>
<aura:renderif isTrue="{!v.display}">
Here's some text!
<aura:set attribute="else">
Here's a react component:
<c:ReactSearch />
</aura:set>
</aura:renderif>
</aura:application>
Controller:
({
toggle : function(component, event, helper) {
component.get('v.display') ? component.set('v.display', false): component.set('v.display', true);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.