Created
November 12, 2018 06:35
-
-
Save simpluslabs/64b800816a6fe6b90b4c50c82938a7a3 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
({ | |
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