You need to sign in to do that
Don't have an account?
sfdcDeveloper 12
Handling Events with Client-Side Controllers not completed
I am getting below error
"Challenge Not yet complete... here's what's wrong:
The 'PhoneNumberInput' client-side controller is not setting the phone param"
Below is my code:
Thanks in advance for help
"Challenge Not yet complete... here's what's wrong:
The 'PhoneNumberInput' client-side controller is not setting the phone param"
Below is my code:
<aura:component > <aura:attribute name="number" type="String" default="No Phone Number"/> <ui:outputText aura:id="phone" value="{!v.number}"/> <aura:handler event="c:PhoneNumberEvent" action="{!c.answer}"/> </aura:component>
<aura:component > <ui:inputPhone aura:id="phone" label="phone" /> <aura:registerEvent name="phone" type="c:PhoneNumberEvent"/> <ui:button label="Show Phone" /> </aura:component>
<aura:event type="APPLICATION" description="Event template"> <aura:attribute name="phone" type="String"/> </aura:event>
<aura:application > <c:PhoneNumberInput /> <c:PhoneNumberOutput /> </aura:application>
Thanks in advance for help
Hope that helps.