I know you can use the for:each directive to loop through Arrays, but is there some way to loop through an object's properties?

  • No, you need to convert that into an array. Apr 8, 2022 at 17:56

1 Answer 1


No, you cannot. However, it is pretty easy to do so with a getter:

get objectProperties() {
  return Object.entries(this.recordObject).map(([key,value])=>({ key, value }));


for:each={objectProperties} for:item="prop"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .