Skip to main content

FormNodeDirective

The public instance type of the [formNode] Angular directive.

Import​

import type { FormNodeDirective } from '@ngblocks/form-nodes';

When to use it​

Use this type for a template-reference or view query. The same exported name is also the runtime directive imported in Angular components; use a normal import when adding it to imports.

Declaration​

type FormNodeDirective<TNode extends AnyNode | WritableSignal<unknown> = AnyNode> = FormNodeBinding<BoundNode<TNode, unknown>>;

Type parameters​

ParameterConstraintDefault
TNodeAnyNode | WritableSignal<unknown>AnyNode