Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 12, 2018 06:35
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/64b800816a6fe6b90b4c50c82938a7a3 to your computer and use it in GitHub Desktop.
Save simpluslabs/64b800816a6fe6b90b4c50c82938a7a3 to your computer and use it in GitHub Desktop.
({
handleComponentEvent : 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