let desc = "Ticket stock"
// let index = this.productForm.controls.findIndex((control) => control.pristine);
const index = (this.productForm as FormArray).controls.findIndex(
(control) => control.invalid
);
console.log(index);
this.productForm.removeAt(index);
I need to remove the element from productForm based on Key "Ticket stock", but I'm able to remove items only based on invalid,pristine,dirty etc.