function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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?

    answer : function(component, event, helper) {
        var text = event.getParam("text");
        component.set("v.myText", text);

What I get: Example

Thank you for your guidance and time!