File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
material-experimental/mdc-radio Expand file tree Collapse file tree 3 files changed +9
-9
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 name ="group1 "> Option 1</ mat-radio >
4- < mat-radio name ="group1 "> Option 2</ mat-radio >
5- < mat-radio name ="group1 " disabled > Option 3 (Disabled)</ mat-radio >
3+ < mat-radio-button name ="group1 "> Option 1</ mat-radio-button >
4+ < mat-radio-button name ="group1 "> Option 2</ mat-radio-button >
5+ < mat-radio-button name ="group1 " disabled > Option 3 (Disabled)</ mat-radio-button >
66</ section >
Original file line number Diff line number Diff line change 99import { CommonModule } from '@angular/common' ;
1010import { NgModule } from '@angular/core' ;
1111import { MatCommonModule } from '@angular/material/core' ;
12- import { MatRadio } from './radio' ;
12+ import { MatRadioButton } from './radio' ;
1313
1414@NgModule ( {
1515 imports : [ MatCommonModule , CommonModule ] ,
16- exports : [ MatRadio , MatCommonModule ] ,
17- declarations : [ MatRadio ] ,
16+ exports : [ MatRadioButton , MatCommonModule ] ,
17+ declarations : [ MatRadioButton ] ,
1818} )
1919export class MatRadioModule {
2020}
Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ let nextUniqueId = 0;
2323
2424@Component ( {
2525 moduleId : module . id ,
26- selector : 'mat-radio' ,
26+ selector : 'mat-radio-button ' ,
2727 templateUrl : 'radio.html' ,
2828 styleUrls : [ 'radio.css' ] ,
2929 host : {
3030 'class' : 'mat-mdc-radio' ,
3131 '[attr.id]' : 'id' ,
3232 } ,
33- exportAs : 'matRadio ' ,
33+ exportAs : 'matRadioButton ' ,
3434 encapsulation : ViewEncapsulation . None ,
3535 changeDetection : ChangeDetectionStrategy . OnPush ,
3636} )
37- export class MatRadio implements AfterViewInit , OnDestroy {
37+ export class MatRadioButton implements AfterViewInit , OnDestroy {
3838
3939 private _uniqueId : string = `mat-radio-${ ++ nextUniqueId } ` ;
4040
You can’t perform that action at this time.
0 commit comments