* Retrieves the top-level ancestor of this control.
()
| 1674 | * Retrieves the top-level ancestor of this control. |
| 1675 | */ |
| 1676 | get root(): AbstractControl { |
| 1677 | let x: AbstractControl = this; |
| 1678 | |
| 1679 | while (x._parent) { |
| 1680 | x = x._parent; |
| 1681 | } |
| 1682 | |
| 1683 | return x; |
| 1684 | } |
| 1685 | |
| 1686 | /** @internal */ |
| 1687 | _updateControlsErrors( |