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;

Usage Notes

status = input({ transform: booleanAttribute });