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 1
1
< h1 > Basic Example</ h1 >
2
2
< 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 >
6
6
</ section >
Original file line number Diff line number Diff line change 9
9
import { CommonModule } from '@angular/common' ;
10
10
import { NgModule } from '@angular/core' ;
11
11
import { MatCommonModule } from '@angular/material/core' ;
12
- import { MatRadio } from './radio' ;
12
+ import { MatRadioButton } from './radio' ;
13
13
14
14
@NgModule ( {
15
15
imports : [ MatCommonModule , CommonModule ] ,
16
- exports : [ MatRadio , MatCommonModule ] ,
17
- declarations : [ MatRadio ] ,
16
+ exports : [ MatRadioButton , MatCommonModule ] ,
17
+ declarations : [ MatRadioButton ] ,
18
18
} )
19
19
export class MatRadioModule {
20
20
}
Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ let nextUniqueId = 0;
23
23
24
24
@Component ( {
25
25
moduleId : module . id ,
26
- selector : 'mat-radio' ,
26
+ selector : 'mat-radio-button ' ,
27
27
templateUrl : 'radio.html' ,
28
28
styleUrls : [ 'radio.css' ] ,
29
29
host : {
30
30
'class' : 'mat-mdc-radio' ,
31
31
'[attr.id]' : 'id' ,
32
32
} ,
33
- exportAs : 'matRadio ' ,
33
+ exportAs : 'matRadioButton ' ,
34
34
encapsulation : ViewEncapsulation . None ,
35
35
changeDetection : ChangeDetectionStrategy . OnPush ,
36
36
} )
37
- export class MatRadio implements AfterViewInit , OnDestroy {
37
+ export class MatRadioButton implements AfterViewInit , OnDestroy {
38
38
39
39
private _uniqueId : string = `mat-radio-${ ++ nextUniqueId } ` ;
40
40
You can’t perform that action at this time.
0 commit comments