From 8e141efee17ceaf19df73de81050daa35bceb853 Mon Sep 17 00:00:00 2001 From: Nathan Tate Date: Fri, 27 Sep 2019 10:41:22 -0700 Subject: [PATCH] fix(material-experimental/radio): rename mdc-radio APIs to match existing radio APIs (#17178) --- src/dev-app/mdc-radio/mdc-radio-demo.html | 6 +++--- src/material-experimental/mdc-radio/module.ts | 6 +++--- src/material-experimental/mdc-radio/radio.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dev-app/mdc-radio/mdc-radio-demo.html b/src/dev-app/mdc-radio/mdc-radio-demo.html index 080d5f205f30..c5e0e1e78495 100644 --- a/src/dev-app/mdc-radio/mdc-radio-demo.html +++ b/src/dev-app/mdc-radio/mdc-radio-demo.html @@ -1,6 +1,6 @@

Basic Example

- Option 1 - Option 2 - Option 3 (Disabled) + Option 1 + Option 2 + Option 3 (Disabled)
diff --git a/src/material-experimental/mdc-radio/module.ts b/src/material-experimental/mdc-radio/module.ts index 3ed6ad42a327..a90599f117b1 100644 --- a/src/material-experimental/mdc-radio/module.ts +++ b/src/material-experimental/mdc-radio/module.ts @@ -9,12 +9,12 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatCommonModule} from '@angular/material/core'; -import {MatRadio} from './radio'; +import {MatRadioButton} from './radio'; @NgModule({ imports: [MatCommonModule, CommonModule], - exports: [MatRadio, MatCommonModule], - declarations: [MatRadio], + exports: [MatRadioButton, MatCommonModule], + declarations: [MatRadioButton], }) export class MatRadioModule { } diff --git a/src/material-experimental/mdc-radio/radio.ts b/src/material-experimental/mdc-radio/radio.ts index f52c69a804f9..341fd1cf9d22 100644 --- a/src/material-experimental/mdc-radio/radio.ts +++ b/src/material-experimental/mdc-radio/radio.ts @@ -23,18 +23,18 @@ let nextUniqueId = 0; @Component({ moduleId: module.id, - selector: 'mat-radio', + selector: 'mat-radio-button', templateUrl: 'radio.html', styleUrls: ['radio.css'], host: { 'class': 'mat-mdc-radio', '[attr.id]': 'id', }, - exportAs: 'matRadio', + exportAs: 'matRadioButton', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, }) -export class MatRadio implements AfterViewInit, OnDestroy { +export class MatRadioButton implements AfterViewInit, OnDestroy { private _uniqueId: string = `mat-radio-${++nextUniqueId}`;