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 5
5
Directive ,
6
6
EventEmitter ,
7
7
HostBinding ,
8
- HostListener ,
9
8
Input ,
10
9
OnInit ,
11
10
Optional ,
@@ -205,7 +204,10 @@ export class MdRadioGroup implements AfterContentInit, ControlValueAccessor {
205
204
selector : 'md-radio-button' ,
206
205
templateUrl : './components/radio/radio.html' ,
207
206
styleUrls : [ './components/radio/radio.css' ] ,
208
- encapsulation : ViewEncapsulation . None
207
+ encapsulation : ViewEncapsulation . None ,
208
+ host : {
209
+ '(click)' : 'onClick($event)'
210
+ }
209
211
} )
210
212
export class MdRadioButton implements OnInit {
211
213
@HostBinding ( 'class.md-radio-focused' )
@@ -333,7 +335,6 @@ export class MdRadioButton implements OnInit {
333
335
this . _disabled = ( value != null && value !== false ) ? true : null ;
334
336
}
335
337
336
- @HostListener ( 'click' , [ '$event' ] )
337
338
onClick ( event : Event ) {
338
339
if ( this . disabled ) {
339
340
event . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments