()
| 429 | /** Whether the component is required. */ |
| 430 | @Input({transform: booleanAttribute}) |
| 431 | get required(): boolean { |
| 432 | return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false; |
| 433 | } |
| 434 | set required(value: boolean) { |
| 435 | this._required = value; |
| 436 | this.stateChanges.next(); |