Skip to main content

HI All,

I am new to Lightning and trying to learn and do the Lightning Trailhead courses.

I am currently doing the challenge in the following link:

https://trailhead.salesforce.com/modules/lex_dev_lc_basics/units/lex_dev_lc_basics_attributes_expressions

The challenge asks to create a component 'Camping_Item__c' and display the fields in that object.

I am hoping many of you here have already completed this long back.. Hence posting here.

 

<aura:component>

    <aura:attribute name="item" type="Camping_Item__c"/>

    <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: <ui:outputCheckBox value="{!v.item.Packed__c}"/>    </p>

</aura:component>

 

I created the object already but have no data inserted though. I still expect the above code to work.

But the trailhead module keeps giving the following error:

--------------------------------------------------------------------------------

Challenge Not yet complete... here's what's wrong: 

The campingListItem Lightning Component's attribute tag doesn't exist or its attributes are not set correctly.

-------------------------------------------------------------------------------

 

I am not clear what is the problem, It looks pretty simple but not able to understand the issue here. 

 

Any comments .. welcome.. thanks in advance..

2 comments
0/9000