diff --git a/src/demo-app/radio/radio-demo.html b/src/demo-app/radio/radio-demo.html
index c23e6b6baa1..b5eb44271cc 100644
--- a/src/demo-app/radio/radio-demo.html
+++ b/src/demo-app/radio/radio-demo.html
@@ -34,7 +34,7 @@
name="my_options"
[disabled]="isDisabled"
[required]="isRequired"
- [align]="isAlignEnd ? 'end' : 'start'">
+ [labelPosition]="isAlignEnd ? 'end' : 'start'">
Option 1
Option 2
Option 3
diff --git a/src/lib/radio/radio.ts b/src/lib/radio/radio.ts
index c6a33c9f577..8cd37805d44 100644
--- a/src/lib/radio/radio.ts
+++ b/src/lib/radio/radio.ts
@@ -141,29 +141,13 @@ export class MatRadioGroup extends _MatRadioGroupMixinBase
this._updateRadioButtonNames();
}
- /**
- * Alignment of the radio-buttons relative to their labels. Can be 'before' or 'after'.
- * @deprecated
- * @deletion-target 6.0.0
- */
- @Input()
- get align(): 'start' | 'end' {
- // align refers to the checkbox relative to the label, while labelPosition refers to the
- // label relative to the checkbox. As such, they are inverted.
- return this.labelPosition == 'after' ? 'start' : 'end';
- }
- set align(v) {
- this.labelPosition = (v == 'start') ? 'after' : 'before';
- }
-
-
/** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */
@Input()
get labelPosition(): 'before' | 'after' {
return this._labelPosition;
}
set labelPosition(v) {
- this._labelPosition = (v == 'before') ? 'before' : 'after';
+ this._labelPosition = v === 'before' ? 'before' : 'after';
this._markRadiosForCheck();
}
@@ -412,23 +396,6 @@ export class MatRadioButton extends _MatRadioButtonMixinBase
}
}
- /**
- * Whether or not the radio-button should appear before or after the label.
- * @deprecated
- * @deletion-target 6.0.0
- */
- @Input()
- get align(): 'start' | 'end' {
- // align refers to the checkbox relative to the label, while labelPosition refers to the
- // label relative to the checkbox. As such, they are inverted.
- return this.labelPosition == 'after' ? 'start' : 'end';
- }
- set align(v) {
- this.labelPosition = (v == 'start') ? 'after' : 'before';
- }
-
- private _labelPosition: 'before' | 'after';
-
/** Whether the label should appear after or before the radio button. Defaults to 'after' */
@Input()
get labelPosition(): 'before' | 'after' {
@@ -437,6 +404,7 @@ export class MatRadioButton extends _MatRadioButtonMixinBase
set labelPosition(value) {
this._labelPosition = value;
}
+ private _labelPosition: 'before' | 'after';
/** Whether the radio button is disabled. */
@Input()