import { Component, forwardRef, input } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; export interface RadioOption { value: string; label: string; } /** The ubiquitous yes/no option pair. Language-agnostic now the labels are localized, so it lives next to RadioOption and both wizards import it. */ export const JA_NEE: RadioOption[] = [ { value: 'ja', label: $localize`:@@common.ja:Ja` }, { value: 'nee', label: $localize`:@@common.nee:Nee` }, ]; /** Atom: a radio group. Thin wrapper over the CIBG Huisstijl `.form-check.styled` radio CSS, wired as a form control so it works with ngModel just like the text-input atom. */ @Component({ selector: 'app-radio-group', template: `