Skip to content

Commit 94b024f

Browse files
author
Nathan Tate
committed
prototype(radio): Update mdc-radio to use names that match the existing radio names
1 parent 7cd78ff commit 94b024f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/material-experimental/mdc-radio/module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
import {CommonModule} from '@angular/common';
1010
import {NgModule} from '@angular/core';
1111
import {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
})
1919
export class MatRadioModule {
2020
}

src/material-experimental/mdc-radio/radio.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ let nextUniqueId = 0;
1313

1414
@Component({
1515
moduleId: module.id,
16-
selector: 'mat-radio',
16+
selector: 'mat-radio-button',
1717
templateUrl: 'radio.html',
1818
styleUrls: ['radio.css'],
1919
host: {
2020
'class': 'mat-mdc-radio',
2121
'[attr.id]': 'id',
2222
},
23-
exportAs: 'matRadio',
23+
exportAs: 'matRadioButton',
2424
encapsulation: ViewEncapsulation.None,
2525
changeDetection: ChangeDetectionStrategy.OnPush,
2626
})
27-
export class MatRadio {
27+
export class MatRadioButton {
2828

2929
private _uniqueId: string = `mat-radio-${++nextUniqueId}`;
3030

0 commit comments

Comments
 (0)