Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular formarray remove all

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

arr.clear();
console.log(arr.length);  // 0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #formarray #remove
ADD COMMENT
Topic
Name
5+7 =