Activity Forums Salesforce® Discussions How to set the key and value of the map in lightning component?

  • Marziya

    Member
    June 26, 2020 at 2:54 pm

    Hii Aditya,
    <aura:component controller="Mapvalue" >
    <aura:handler name="init" value="{!this}" action="{!c.doinit}"/>
    <aura:attribute type="map" name="Mapuse"/> // Map type attribute to hold map value
    {!v.Mapuse.key1}
    {!v.Mapuse.key2}
    {!v.Mapuse.key3}
    </aura:component>

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos