Skip to main content

Function: childPrefixOf()

function childPrefixOf(
element,
elementPath,
parentPrefix,
repeatIndex?
): string;

Defined in: utils.ts:24

The prefix a container's children are bound to.

repeatIndex is supplied when rendering one instance of a repeat; without it the caller gets the template prefix (name[]), which is only useful for diagnostics.

Parameters

ParameterType
elementElement
elementPathstring
parentPrefixstring
repeatIndex?number

Returns

string