W3cubDocs

/Angular

booleanAttribute

function

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

booleanAttribute(value: unknown): boolean

Parameters
value unknown

Value to be transformed.

Returns

boolean

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/booleanAttribute