+ Start a Discussion

how to display map in lightning component

i have my map in my apex as follows,

 map<id,list<OrderDetailsClass>> OrderedProductsInOrder=new map<id,list<OrderDetailsClass>>();
where OrderDetailsClass is wrapper class which stores info of order products. Im getting ids of orders as keys and corresponding order products as value.

I set the result from apex to JS  like below,

 var getOrdersAction=component.get("c.getOrdersApex"); //getOrdersApex is the apex method
         getOrdersAction.setCallback(this, function(response){
             var OLE=getOrdersAction.getReturnValue();

Now i have 1 order id and 3 order products corresponding to that order. im getting it in my JS controller  when i give alert like below,

alert(component.get("v.orderProducts")['80128000000C3hVAAS']); // 80128000000C3hVAAS is my order id

I have 1 order and 3 order products associated with it. Im getting 3 order products in the alert. Now i want to display it in my component. That is group order products under each orders.
How can we do that?
NagendraNagendra (Salesforce Developers) 
Hi Eldon,

Please find the below post on forums community for displaying map in the lightning component.

Hope this helps.

Best Regards,