TypeError: this.receivedSummons.map is not a function Angular

后端 未结 1 1603
醉酒成梦
醉酒成梦 2021-01-26 12:29

I am trying to binding dynamic checkboxes on FormArray, when I reproduce on stackblitz its work, but show me error on my IDE, and I am us

相关标签:
1条回答
  • 2021-01-26 13:00

    From the JSON you posted, looks like this.receivedSummons is not an array, .map works over an array, change your code as

    this.receivedSummons.data.items.map(checkbox =
    
    0 讨论(0)
提交回复
热议问题