Answers for "how to remove all element from formarray"

2

angular formarray remove all

const arr = new FormArray([
   new FormControl(),
   new FormControl()
]);
console.log(arr.length);  // 2

arr.clear();
console.log(arr.length);  // 0
Posted by: Guest on October-29-2020
0

how to remove all element from formarray

formArray.clear();
Posted by: Guest on May-10-2021

Code answers related to "how to remove all element from formarray"

Browse Popular Code Answers by Language