How to iterate using ngFor loop Map containing key as string and values as map iteration

前端 未结 6 1607
孤独总比滥情好
孤独总比滥情好 2020-12-02 10:51

I am new to angular 5 and trying to iterate the map containing another map in typescript. How to iterate below this kind of map in angular below is code for component:

6条回答
  •  青春惊慌失措
    2020-12-02 11:28

    The below code useful to display in the map insertion order.

    • {{recipient.key}} --> {{recipient.value}}

    .ts file add the below code.

    asIsOrder(a, b) {
        return 1;
    }
    

提交回复
热议问题