@@ -283,7 +283,7 @@ export class MdRadioGroup extends _MdRadioGroupMixinBase
283
283
'[class.mat-radio-checked]' : 'checked' ,
284
284
'[class.mat-radio-disabled]' : 'disabled' ,
285
285
'[attr.id]' : 'id' ,
286
- }
286
+ } ,
287
287
changeDetection : ChangeDetectionStrategy . OnPush ,
288
288
} )
289
289
export class MdRadioButton implements OnInit , AfterViewInit , OnDestroy {
@@ -305,39 +305,6 @@ export class MdRadioButton implements OnInit, AfterViewInit, OnDestroy {
305
305
get disableRipple ( ) : boolean { return this . _disableRipple ; }
306
306
set disableRipple ( value ) { this . _disableRipple = coerceBooleanProperty ( value ) ; }
307
307
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
-
341
308
/** Whether this radio button is checked. */
342
309
@Input ( )
343
310
get checked ( ) : boolean {
0 commit comments