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 1
1
< h1 > Basic Example</ h1 >
2
2
< 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 >
4
4
< mat-radio-button name ="group1 "> Option 2</ mat-radio-button >
5
5
< mat-radio-button name ="group1 " disabled ="true "> Option 3 (disabled)</ mat-radio-button >
6
6
</ section >
Original file line number Diff line number Diff line change @@ -365,11 +365,10 @@ export class MatRadioButton extends _MatRadioButtonMixinBase
365
365
366
366
/** Whether this radio button is checked. */
367
367
@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 ) ;
371
371
372
- set checked ( newCheckedState : boolean ) {
373
372
if ( this . _checked != newCheckedState ) {
374
373
this . _checked = newCheckedState ;
375
374
You can’t perform that action at this time.
0 commit comments