@@ -90,12 +90,8 @@ export const _MatRadioGroupMixinBase = mixinDisabled(MatRadioGroupBase);
90
90
} )
91
91
export class MatRadioGroup extends _MatRadioGroupMixinBase
92
92
implements AfterContentInit , ControlValueAccessor , CanDisable {
93
- /**
94
- * Selected value for group. Should equal the value of the selected radio button if there *is*
95
- * a corresponding radio button with a matching value. If there is *not* such a corresponding
96
- * radio button, this value persists to be applied in case a new radio button is added with a
97
- * matching value.
98
- */
93
+
94
+ /** Selected value for the radio group. */
99
95
private _value : any = null ;
100
96
101
97
/** The HTML name attribute applied to radio buttons in this group. */
@@ -154,7 +150,12 @@ export class MatRadioGroup extends _MatRadioGroupMixinBase
154
150
this . _markRadiosForCheck ( ) ;
155
151
}
156
152
157
- /** Value of the radio button. */
153
+ /**
154
+ * Value for the radio-group. Should equal the value of the selected radio button if there is
155
+ * a corresponding radio button with a matching value. If there is not such a corresponding
156
+ * radio button, this value persists to be applied in case a new radio button is added with a
157
+ * matching value.
158
+ */
158
159
@Input ( )
159
160
get value ( ) : any { return this . _value ; }
160
161
set value ( newValue : any ) {
@@ -173,7 +174,10 @@ export class MatRadioGroup extends _MatRadioGroupMixinBase
173
174
}
174
175
}
175
176
176
- /** Whether the radio button is selected. */
177
+ /**
178
+ * The currently selected radio button. If set to a new radio button, the radio group value
179
+ * will be updated to match the new selected button.
180
+ */
177
181
@Input ( )
178
182
get selected ( ) { return this . _selected ; }
179
183
set selected ( selected : MatRadioButton | null ) {
0 commit comments