Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 12, 2018 07:16
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/72c35a0c11d23840b3cf34ed3e8e58f1 to your computer and use it in GitHub Desktop.
Save simpluslabs/72c35a0c11d23840b3cf34ed3e8e58f1 to your computer and use it in GitHub Desktop.
({
fireApplicationEvent : function(cmp, event)
{
// Get the application event by using the
// e.<namespace>.<event> syntax
var appEvent = $A.get("e.c:appEvent");
appEvent.setParams({
"message" : "An application event fired me. " +
"It all happened so fast. Now, I'm everywhere!" });
appEvent.fire();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment