booleanAttribute
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
Usage notes
@Input({ transform: booleanAttribute }) status!: boolean;