angular/adev/shared-docs/components/slide-toggle/slide-toggle.component.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
346 B
HTML
Raw Permalink Normal View History

<label [attr.for]="buttonId()">
<span class="docs-label">{{ label() }}</span>
<div class="docs-toggle">
<input
type="checkbox"
[id]="buttonId()"
role="switch"
(click)="toggle()"
[class.docs-toggle-active]="checked()"
[checked]="checked()"
/>
<span class="docs-slider"></span>
</div>
</label>