How to Iterate JSON properties in TypeScript

后端 未结 5 2080
慢半拍i
慢半拍i 2020-12-20 06:00

My question is very simple, I have a following JSON Typescript Object and I like to Iterate trought the JSON properties

{\"work_type\":\"Fabricación\",\"work_t

5条回答
  •  执笔经年
    2020-12-20 06:29

    As per your comment, I'm assuming you want to do an ngFor on the HTML to display each one of the key-value pairs

    {{properties[key]}} --> this is the value

提交回复
热议问题