Skip to content

Instantly share code, notes, and snippets.

@rsussland rsussland/
Last active Feb 24, 2016

What would you like to do?
contract violation example
<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 />
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.