a3849611b7
Prior to this commit, removing `FormControlDirective` and `FormGroupName` directive instances didn't clear the callbacks previously registered on FromControl/FormGroup class instances. As a result, these callbacks were executed even after `FormControlDirective` and `FormGroupName` directive instances were destroyed. That was also causing memory leaks since these callbacks also retained references to DOM elements. This commit updates the cleanup logic to take care of properly detaching FormControl/FormGroup/FormArray instances from the view by removing view-specific callback at destroy time. Closes #20007, #37431, #39590. PR Close #39235 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
directives_spec.ts | ||
form_array_spec.ts | ||
form_builder_spec.ts | ||
form_control_spec.ts | ||
form_group_spec.ts | ||
reactive_integration_spec.ts | ||
spies.ts | ||
template_integration_spec.ts | ||
util.ts | ||
validators_spec.ts | ||
value_accessor_integration_spec.ts |