MaterialRadioComponent constructor
MaterialRadioComponent(
- HtmlElement _root,
- ChangeDetectorRef _changeDetector,
- @Host() @Optional() MaterialRadioGroupComponent? _group,
- @Self() @Optional() NgControl? cd,
- @Attribute('role') String? role,
Implementation
MaterialRadioComponent(
this._root,
this._changeDetector,
@Host() @Optional() this._group,
@Self() @Optional() NgControl? cd,
@Attribute('role') String? role)
: this.role = role ?? 'radio',
super(_root) {
// When NgControl is present on the host element, the component
// participates in the Forms API.
cd?.valueAccessor = this;
}