MCPcopy Create free account
hub / github.com/angular/angular / root

Function root

packages/forms/src/model/abstract_model.ts:1676–1684  ·  view source on GitHub ↗

* Retrieves the top-level ancestor of this control.

()

Source from the content-addressed store, hash-verified

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(

Callers 1

submit.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected