DAGDA SEARCH | Back to results | Support the Project

booleanAttribute • Angular

Source: https://angular.dev/api/core/booleanAttribute

@angular/core

booleanAttribute

functionstablecode

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 });