Here’s a JavaScript console helper you can paste into the browser DevTools.
You pass:
- The Angular component instance (usually accessible as
ng.getComponent($0)in dev mode) - The FormGroup property name (string)
It will recursively collect all controls with errors, including nested FormGroup and FormArray, and print them clearly.