Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 12, 2018 07:17
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/ea8382f3b6815c9beb1bd0ae670b0399 to your computer and use it in GitHub Desktop.
Save simpluslabs/ea8382f3b6815c9beb1bd0ae670b0399 to your computer and use it in GitHub Desktop.
({
handleApplicationEvent : function(cmp, event) {
var message = event.getParam("message");
// set the handler attributes based on event data
cmp.set("v.messageFromEvent", message);
var numEventsHandled = parseInt(cmp.get("v.numEvents")) + 1;
cmp.set("v.numEvents", numEventsHandled);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment