I've been trying to access map values in Lightning Components, but haven't been able to be successful.
I've searched the documentation, articles, this forum, etc and the answer seems to be that there isn't a way to do it via the value provider {!v.} in the markup. Meaning, the only way is via the JS controller.
Editing this question for clarity: my goal is to confirm whether or not there is indeed no way of currently accessing map values in lightning component markup.
I've checked the the map that I have contains the data I expect (see below). There is only one map key at the moment and it's an opportunity ID.
{"0060x0000061FU0AAM":[{"Id":"0060x0000061FU5AAM","AccountId":"0014100000gZs1IAAS","Name":"Closed Renewal Lookup - Test","StageName":"Renewed","Amount":1234,"CloseDate":"2018-08-21","OwnerId":"00541000001TeSwAAK","Owner":{"Name":"F","Id":"00541000001TeSwAAK"}},{"Id":"0060x0000061FUAAA2","AccountId":"0014100000gZs1IAAS","Name":"Closed NB Lookup - Test","StageName":"Deal Won","Amount":1234,"CloseDate":"2018-08-01","OwnerId":"00541000001TeSwAAK","Owner":{"Name":"F","Id":"00541000001TeSwAAK"}}]}
Here's what I've tried and nothing has been successful.
{!v.map.key}
(tried this with iteration component)
FIELD_INTEGRITY_EXCEPTION
Failed to save openRenewals.cmp: unexpected token: '.0060' at column 17 of expression: v.allRelatedOpps.0060x0000061FU0AAM: Source
{!v.map[key]}
(tried this with iteration component)
FIELD_INTEGRITY_EXCEPTION
Failed to save openRenewals.cmp: expecting a right square bracket, found 'x0000061FU0AAM' at column 22 of expression: v.allRelatedOpps[0060x0000061FU0AAM]: Source
{!v.map[0]}
(saves but doesn't work)
{!v.map[0].Name}
(saves but doesn't work)
{!v.map[0][0].Name}
(to get the name of the first item in the first map entry)
{!v.myRecord[myFieldName]}
is not an allowed expression. If you post your use case here we can try to figure out an alternative.