function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Flint LockwoodFlint Lockwood 

Get value from Map Salesforce Lightning Syntax

Hi, 

I am trying to do something to what we are able to to in Visualforce. In Visualforce, can use this syntax Map[key] to retrieve values from a map. However, I am unable to get the syntax correct in Salesforce Lightning. Anyone know the correct syntax for getting values from a map?
sfdcMonkey.comsfdcMonkey.com
hi filnt lockwood
go to below link for you solution
https://teachforce.wordpress.com/2016/11/16/how-to-use-map-in-lightning-component/
mark it best answer if it helps you so it make proper solution for others
thanks
Flint LockwoodFlint Lockwood
Is there a way to use dynamic values for the map key? So instead of specifying "key1" it would be a variable. 
sfdcMonkey.comsfdcMonkey.com
hi
you can iterate map values in lightning component  go to below linke for reference
http://salesforce.stackexchange.com/questions/140608/how-to-iterate-over-map-in-salesforce-lightning-component
i hope it helps you
Thanks
let me inform if it helps you
Flint LockwoodFlint Lockwood
Darn! Guess this is not possible yet in Lightning. 
sfdcMonkey.comsfdcMonkey.com
yes dynamic assignment is not possible yet in LC