Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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;