◐ Shell
clean mode source ↗

booleanAttribute • Angular

@angular/core

function

stable

Transforms a value (typically a string) to a boolean. Intended to be used as a transform function of an input.

API

function booleanAttribute(value: unknown): boolean;

@paramvalueunknown

Value to be transformed.

@returnsboolean

Usage Notes

status = input({ transform: booleanAttribute });