Skip to content

docs(radio): fix wrong documentation comment #12005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions src/lib/radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,8 @@ export const _MatRadioGroupMixinBase = mixinDisabled(MatRadioGroupBase);
})
export class MatRadioGroup extends _MatRadioGroupMixinBase
implements AfterContentInit, ControlValueAccessor, CanDisable {
/**
* Selected value for group. Should equal the value of the selected radio button if there *is*
* a corresponding radio button with a matching value. If there is *not* such a corresponding
* radio button, this value persists to be applied in case a new radio button is added with a
* matching value.
*/

/** Selected value for the radio group. */
private _value: any = null;

/** The HTML name attribute applied to radio buttons in this group. */
Expand Down Expand Up @@ -154,7 +150,12 @@ export class MatRadioGroup extends _MatRadioGroupMixinBase
this._markRadiosForCheck();
}

/** Value of the radio button. */
/**
* Value for the radio-group. Should equal the value of the selected radio button if there is
* a corresponding radio button with a matching value. If there is not such a corresponding
* radio button, this value persists to be applied in case a new radio button is added with a
* matching value.
*/
@Input()
get value(): any { return this._value; }
set value(newValue: any) {
Expand All @@ -173,7 +174,10 @@ export class MatRadioGroup extends _MatRadioGroupMixinBase
}
}

/** Whether the radio button is selected. */
/**
* The currently selected radio button. If set to a new radio button, the radio group value
* will be updated to match the new selected button.
*/
@Input()
get selected() { return this._selected; }
set selected(selected: MatRadioButton | null) {
Expand Down