I would like to get the values of object without aura iteration
let buttonList = tempRes.buttonList;
var btnObj = [] ;
if(buttonList){
buttonList.forEach(function(button){
btnObj.push({
'label':button.Button_Label__c,
'details':{'label':button.Button_Label__c,'textColor':button.Button_Text_Color__c,'Icon':button.Icon__c,'shortCut':button.Shortcut_Keys__c,'bgColor':button.Background_Color__c}
})
})
}
component.set("v.btnList",btnObj);
I know to get it through aura:iterator. Is there any alternative?. Please help.
Can I do something like this in aura
const map1 = new Map();
map1.set('bar', {'test':123,'test2':2333});
map1.set('bar1', 'foo00000');
if(map1.has('bar')){
console.log(map1.get('bar').test);
}
Is this possible?
<aura:if istrue="map1.has('bar'))">
<button value={!map1.get('bar').test}/>
</aura:if>