@@ -283,7 +283,7 @@ export class MdRadioGroup extends _MdRadioGroupMixinBase
283283 '[class.mat-radio-checked]' : 'checked' ,
284284 '[class.mat-radio-disabled]' : 'disabled' ,
285285 '[attr.id]' : 'id' ,
286- }
286+ } ,
287287 changeDetection : ChangeDetectionStrategy . OnPush ,
288288} )
289289export class MdRadioButton implements OnInit , AfterViewInit , OnDestroy {
@@ -305,39 +305,6 @@ export class MdRadioButton implements OnInit, AfterViewInit, OnDestroy {
305305 get disableRipple ( ) : boolean { return this . _disableRipple ; }
306306 set disableRipple ( value ) { this . _disableRipple = coerceBooleanProperty ( value ) ; }
307307
308- /**
309- * Event emitted when the checked state of this radio button changes.
310- * Change events are only emitted when the value changes due to user interaction with
311- * the radio button (the same behavior as `<input type-"radio">`).
312- */
313- @Output ( )
314- change : EventEmitter < MdRadioChange > = new EventEmitter < MdRadioChange > ( ) ;
315-
316- /** The native `<input type=radio>` element */
317- @ViewChild ( 'input' ) _inputElement : ElementRef ;
318-
319- constructor ( @Optional ( ) radioGroup : MdRadioGroup ,
320- private _elementRef : ElementRef ,
321- private _renderer : Renderer ,
322- private _changeDetector : ChangeDetectorRef ,
323- public radioDispatcher : UniqueSelectionDispatcher ) {
324- // Assertions. Ideally these should be stripped out by the compiler.
325- // TODO(jelbourn): Assert that there's no name binding AND a parent radio group.
326-
327- this . radioGroup = radioGroup ;
328-
329- radioDispatcher . listen ( ( id : string , name : string ) => {
330- if ( id != this . id && name == this . name ) {
331- this . checked = false ;
332- }
333- } ) ;
334- }
335-
336- /** ID of the native input element inside `<md-radio-button>` */
337- get inputId ( ) : string {
338- return `${ this . id } -input` ;
339- }
340-
341308 /** Whether this radio button is checked. */
342309 @Input ( )
343310 get checked ( ) : boolean {
0 commit comments