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

Function controlPath

packages/forms/src/directives/shared.ts:71–73  ·  view source on GitHub ↗
(name: string | null, parent: ControlContainer)

Source from the content-addressed store, hash-verified

69export const setDisabledStateDefault: SetDisabledStateOption = 'always'; // 3p-only
70
71export function controlPath(name: string | null, parent: ControlContainer): string[] {
72 return [...parent.path!, name!];
73}
74
75/**
76 * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both

Callers 4

_getPathMethod · 0.90
pathMethod · 0.90
pathMethod · 0.90
pathMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected