mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
BREAKING CHANGE Before <div (^click)="onEventHandler()"> <button></button> </div> After <div (click)="onEventHandler()"> <button></button> </div> Closes #3864
18 lines
565 B
HTML
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>
|