angular/modules/angular2_material/src/components/radio/radio_button.html
vsavkin 60ce884671 feat(core): remove the (^ syntax and make all DOM events bubbling
BREAKING CHANGE

Before
<div (^click)="onEventHandler()">
  <button></button>
</div>

After
<div (click)="onEventHandler()">
  <button></button>
</div>

Closes #3864
2015-09-01 15:54:47 +00:00

18 lines
565 B
HTML

<style>@import "package:angular2_material/src/components/radio/radio-button.css";</style>
<!-- TODO(jelbourn): render the radio on either side of the content -->
<label role="radio" class="md-radio-root"
[class.md-radio-checked]="checked"
(click)="select($event)">
<!-- The actual `radio` part of the control. -->
<div class="md-radio-container">
<div class="md-radio-off"></div>
<div class="md-radio-on"></div>
</div>
<!-- The label for radio control. -->
<div class="md-radio-label">
<ng-content></ng-content>
</div>
</label>