Angular, Typescript, JavaScript.
checked</span> } </div> The @if (logical_expression) { statement creates a @if block with a logical expression. I use the isChecked() signal as a logical expression, as it evaluates to a boolean value. I added an @else block under the @if block, it's rendered when the logical expression in the @if