Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 12, 2018 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simpluslabs/ac94dc132ab4e6dbed272d7a060fd389 to your computer and use it in GitHub Desktop.
Save simpluslabs/ac94dc132ab4e6dbed272d7a060fd389 to your computer and use it in GitHub Desktop.
({
fireComponentEvent : function(component, event, helper)
{
// Get the component event by using the
// name value from aura:registerEvent
var cmpEvent = component.getEvent("cmpEvent");
cmpEvent.setParams({
"message" : "A component event fired me. " +
"It all happened so fast. Now, I'm here!" });
cmpEvent.fire();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment