File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11< h1 > Basic Example</ h1 >
22< section class ="demo-section ">
3- < mat-radio-button name ="group1 "> Option 1</ mat-radio-button >
3+ < mat-radio-button name ="group1 " checked > Option 1</ mat-radio-button >
44 < mat-radio-button name ="group1 "> Option 2</ mat-radio-button >
55 < mat-radio-button name ="group1 " disabled ="true "> Option 3 (disabled)</ mat-radio-button >
66</ section >
Original file line number Diff line number Diff line change @@ -365,11 +365,10 @@ export class MatRadioButton extends _MatRadioButtonMixinBase
365365
366366 /** Whether this radio button is checked. */
367367 @Input ( )
368- get checked ( ) : boolean {
369- return this . _checked ;
370- }
368+ get checked ( ) : boolean { return this . _checked ; }
369+ set checked ( value : boolean ) {
370+ const newCheckedState = coerceBooleanProperty ( value ) ;
371371
372- set checked ( newCheckedState : boolean ) {
373372 if ( this . _checked != newCheckedState ) {
374373 this . _checked = newCheckedState ;
375374
You can’t perform that action at this time.
0 commit comments