File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55 Directive ,
66 EventEmitter ,
77 HostBinding ,
8- HostListener ,
98 Input ,
109 OnInit ,
1110 Optional ,
@@ -205,7 +204,10 @@ export class MdRadioGroup implements AfterContentInit, ControlValueAccessor {
205204 selector : 'md-radio-button' ,
206205 templateUrl : './components/radio/radio.html' ,
207206 styleUrls : [ './components/radio/radio.css' ] ,
208- encapsulation : ViewEncapsulation . None
207+ encapsulation : ViewEncapsulation . None ,
208+ host : {
209+ '(click)' : 'onClick($event)'
210+ }
209211} )
210212export class MdRadioButton implements OnInit {
211213 @HostBinding ( 'class.md-radio-focused' )
@@ -333,7 +335,6 @@ export class MdRadioButton implements OnInit {
333335 this . _disabled = ( value != null && value !== false ) ? true : null ;
334336 }
335337
336- @HostListener ( 'click' , [ '$event' ] )
337338 onClick ( event : Event ) {
338339 if ( this . disabled ) {
339340 event . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments