You need to sign in to do that
Don't have an account?
Mohith Kumar Shrivastava
TrialHead Lightning Challenge evaluating wrong
I am attempting challenge in trialhead
https://developer.salesforce.com/trailhead/lightning_components/lightning_components_events_handle
I am gettting below error
I checked my code and I have tags properly written as below
My events that is created is as follows
My handler ctrl class for input is as below
For output My handler class is
I am able to see this working in my org ,I still get the issue as seen below
Is this is a bug in Trailhead ?
https://developer.salesforce.com/trailhead/lightning_components/lightning_components_events_handle
I am gettting below error
I checked my code and I have tags properly written as below
<aura:component > <aura:registerEvent name="phevent" type="mohrcks:PhoneNumberEvent"/> <ui:inputPhone aura:id="phone" label="phone" /> <ui:button label="Show Phone" press="{!c.send}"/> </aura:component>Also for output I have handler defined as well
<aura:component > <aura:attribute name="number" type="String" default="No Phone Number"/> <ui:outputText aura:id="phone" value="{!v.number}"/> <aura:handler event="mohrcks:PhoneNumberEvent" action="{!c.answer}"/> </aura:component>
My events that is created is as follows
<aura:event type="APPLICATION" description="Event template"> <aura:attribute name="phone" type="String"/> </aura:event>
My handler ctrl class for input is as below
({ send : function(component, event, helper) { var phone = component.find("phone").get("v.value"); console.log(phone); $A.get("event.mohrcks:PhoneNumberEvent").setParams({ phone: phone }).fire(); } })
For output My handler class is
({ answer : function(component, event, helper) { var text = event.getParam("phone"); component.set("v.number", text); } })
I am able to see this working in my org ,I still get the issue as seen below
Is this is a bug in Trailhead ?
All Answers
Sandeep