You need to sign in to do that
Don't have an account?
vleandro
Component Event Example
Module: Lightening Components
Section: Handling Events with Client-Side Controllers
Component Event Example
I tried following the example in this exercise for Component Event Example, but I think there's something missing in the "receiverController.js". The code sample is identical to that of "Application Event Example". Now I get this with the first two buttons doing nothing (Message: None never changes) but the second set of buttons working correctly. What am I or the sample code missing?
receiverController.js
What I get:
Thank you for your guidance and time!
Section: Handling Events with Client-Side Controllers
Component Event Example
I tried following the example in this exercise for Component Event Example, but I think there's something missing in the "receiverController.js". The code sample is identical to that of "Application Event Example". Now I get this with the first two buttons doing nothing (Message: None never changes) but the second set of buttons working correctly. What am I or the sample code missing?
receiverController.js
({ answer : function(component, event, helper) { var text = event.getParam("text"); component.set("v.myText", text); } })
What I get:
Thank you for your guidance and time!