2

I am using ngx-formly to build UI dynamically based on JSON. I am currently having some problems implementing the add/delete functionality for a key/val

Since all my keys/values are dynamically added to the JSON, I need to find the key based on the index and remove it. I am able to see the keys on the this.field.parent property

The buttons I added to add/delete are based on an extended type. Not sure if this is a good approach or is a better way to do this?

enter image description here

Stackblitz Sample

Hamada
  • 1,836
  • 3
  • 13
  • 27
HariHaran
  • 3,642
  • 2
  • 16
  • 33

0 Answers0