Checked Checkbox
@if (showInlineHelp) {
}
Unchecked Checkbox
@if (showInlineHelp) {
}
Indeterminate Checkbox [internal only]
@if (showInlineHelp) {
}
Disabled Checkbox
@if (showInlineHelp) {
}
Disabled Checked Checkbox
@if (showInlineHelp) {
}
Disabled Indeterminate Checkbox [internal only]
@if (showInlineHelp) {
}
Template-driven checkbox
| Errors |
{{ templateDrivenCheckbox.errors | json }} |
| Touched |
{{ templateDrivenCheckbox.touched }} |
| Pristine |
{{ templateDrivenCheckbox.pristine }} |
| Valid |
{{ templateDrivenCheckbox.valid }} |
Reactive checkbox
| Errors |
{{ reactiveFormGroup.get('reactiveCheckbox')?.errors | json }} |
| Touched |
{{ reactiveFormGroup.touched }} |
| Pristine |
{{ reactiveFormGroup.pristine }} |
| Valid |
{{ reactiveFormGroup.valid }} |
Template driven