Created
November 12, 2018 06:34
-
-
Save simpluslabs/ac94dc132ab4e6dbed272d7a060fd389 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
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