You need to sign in to do that
Don't have an account?
Caleb Kuester
Lightning Component Trailhead Challenge
Greetings!
I have a problem.
The Trailhead Lightning Developer challenge requirements are listed as:
The code is here:
I have tried both uninstantiated and instantiated values for "item." I have tried with and without text descriptions of the items. This challenge will not validate as successful and I find the description itself mildly vague.
What could I be doing wrong?
Thanks in advance,
SomeForumGuy
I have a problem.
The Trailhead Lightning Developer challenge requirements are listed as:
- Create a compenent called campingListItem.
- Add an attribute named item for type Camping_Item__c that is required.
- Display the Name, Price, Quanity and Packed status using the appropriate output fields
The code is here:
<aura:component > <aura:attribute name="item" type="Camping_Item__c" default="{ 'Name': 'asdf', 'Price__c': '0', 'Quantity__c': '3', 'Packed__c': true }"/> <p>Name: <ui:outputText value="{!v.item.Name}" /> </p> <p>Price: <ui:outputCurrency value="{!v.item.Price__c}" /> </p> <p>Quantity: <ui:outputNumber value="{!v.item.Quantity__c}" /> </p> <p>Packed status: <ui:outputCheckbox value="{!v.item.Packed__c}" /> </p> </aura:component>
I have tried both uninstantiated and instantiated values for "item." I have tried with and without text descriptions of the items. This challenge will not validate as successful and I find the description itself mildly vague.
What could I be doing wrong?
Thanks in advance,
SomeForumGuy
update your <aura:attribute> with these value
<aura:attribute name="item" type="Camping_Item__c" required="true"/>
Thanks
Mark it solve if it helps you :)
All Answers
update your <aura:attribute> with these value
<aura:attribute name="item" type="Camping_Item__c" required="true"/>
Thanks
Mark it solve if it helps you :)