You need to sign in to do that
Don't have an account?
anthony thomas 9
Handling of events with Client side controller Challenge
This is what I have based on the directions for this challenge:
The conference application your company is creating must display a phone number in one component for display that's based on the input of another component. Create an application that contains an inputPhone component and an outputText component. The components themselves can be found here and here. You must add the application event and client-side controllers to make it work.
The PhoneNumberInput and PhoneNumberOutput components can be found here and here. Copy and paste those two components into your Developer Edition using the Developer Console.
The application event must be named 'PhoneNumberEvent' and must have an attribute named 'phone' (of type String).
The components must have the correct registerEvent and handler components.
The client side controllers must get and set the 'phone' attribute correctly.
Input is this:
<aura:application >
<aura:event type="APPLICATION" />
<aura:attribute name="phone" type="String" />
</aura:event>
</aura:application>
And I keep getting an error of this:
The 'PhoneNumberEvent' event does not have an attribute component
The conference application your company is creating must display a phone number in one component for display that's based on the input of another component. Create an application that contains an inputPhone component and an outputText component. The components themselves can be found here and here. You must add the application event and client-side controllers to make it work.
The PhoneNumberInput and PhoneNumberOutput components can be found here and here. Copy and paste those two components into your Developer Edition using the Developer Console.
The application event must be named 'PhoneNumberEvent' and must have an attribute named 'phone' (of type String).
The components must have the correct registerEvent and handler components.
The client side controllers must get and set the 'phone' attribute correctly.
Input is this:
<aura:application >
<aura:event type="APPLICATION" />
<aura:attribute name="phone" type="String" />
</aura:event>
</aura:application>
And I keep getting an error of this:
The 'PhoneNumberEvent' event does not have an attribute component
All Answers
Thanks for the code but when I check challenge I get this error message
"Challenge not yet complete... here's what's wrong:
The 'PhoneNumberInput' client-side controller is not setting the phone param"
The 'PhoneNumberInput' client-side controller is not setting the phone param....
Below is the final code that I used to complete this module. (FYI - I renamed things to make it more apparent what was what):
PhoneNumber.app (Optional) PhoneNumberEvent.evt PhoneNumberInput.cmp PhoneNumberInputController.js PhoneNumberOutput.cmd PhoneNumberOutputController.js
Hope that helps clear things up.