The ‘PhoneNumberInput’ client-side controller is not setting the phone param

The ‘PhoneNumberInput’ client-side controller is not setting the phone param

Use the below

Controller Code:

({
send : function(component, event, helper) {
var phone = component.find(“phone”).get(“v.value”);
        console.log(phone);
        $A.get(“event.c:PhoneNumberEvent”).setParams({
            phone: phone
       }).fire();
}
})
    
    ({
answer : function(component, event, helper) {
var text = event.getParam(“phone”);
        component.set(“v.phone”, text);
}
})

Cheers!!!

Leave a Reply