I have two related objects:
itemsObj = {
'item1' : 'A1',
'item2' : 'A2',
'item3' : 'B',
'item4' : 'C',
'item5' : 'D'
};
And:
itemsObj2 = {
'A1' : 'Very conservative and up',
'A2' : 'Conservative and up',
'B' : 'Balanced and up',
'C' : 'Growth and up',
'D' : 'Aggressive'
};
Interpolating {{itemsObj.item1}} will return A1 and {{itemsObj2.A1}} will return Very conservative and up.
How to concatenate itemsObj.item1 with itemsObj2.A1 to return Very conservative and up?
My attempt:
{{itemsObj2.itemsObj.item1}} but of course this is wrong. So may I know how to concatenate in my case?
{{itemsObj2[itemsObj.item1]}}