Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Created February 28, 2016 23:49
Show Gist options
  • Save msrivastav13/f8a9d4ceaab5100cac7a to your computer and use it in GitHub Desktop.
Save msrivastav13/f8a9d4ceaab5100cac7a to your computer and use it in GitHub Desktop.
<aura:application access="GLOBAL" extends="ltng:outApp">
<aura:dependency resource="c:sampleComponent" />
</aura:application>
<aura:component>
<div>
Hello world Component!
</div>
<aura:handler event="c:sampleEvent" action="{!c.handleevent}"/>
</aura:component>
({
handleevent: function(component, event, helper) {
console.log('event fired');
}
})
<aura:event type="APPLICATION">
</aura:event>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment