The Wayback Machine - https://web.archive.org/web/20260103054301/https://angular.dev/api/core/booleanAttribute
    • Overview
@angular/core

booleanAttribute

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;

booleanAttribute

boolean

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

@paramvalueunknown

Value to be transformed.

@returnsboolean
Usage notes
status = input({ transform: booleanAttribute });

Usage Notes

status = input({ transform: booleanAttribute });
Jump to details
HTTPS · web.archive.org
← Home