• Sudhansu Bhusan Das
  • 0 Points
  • Member since 2018

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 1
I am stuck on the Atttributes and Expressions challenge of the lightening component basics:

I get the following message: The Name field is not being displayed using an expression.

I'm really not 100% sure how the display component is meant to work for Name and Packed status - as there seems to be no "<lightening: /> formatting markup available. 

Here is my code:


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

    <aura:attribute name="expense" type="Expense__c"/>
        <lightning:String value="{!v.item.Name__c}" style="Text"/>
        <lightning:formattedNumber value="{!v.item.Price__c}" style="Currency"/>
        <lightning:formattedNumber value="{!v.item.Quantity__c}" style="Number"/>
    <p>Packed Status:
        <lightning:Checkbox value="{!v.item.Packed__c}" style="Toggle"/>


Thanks for your assistance in advance.