
BREAKING CHANGE Before <div (^click)="onEventHandler()"> <button></button> </div> After <div (click)="onEventHandler()"> <button></button> </div> Closes #3864
10 lines
312 B
HTML
10 lines
312 B
HTML
<div md-theme="default">
|
|
<h2>NgSwitch demo</h2>
|
|
|
|
<md-switch (click)="increment()">Normal switch</md-switch>
|
|
<md-switch class="md-primary" (click)="increment()">Primary switch</md-switch>
|
|
<md-switch disabled (click)="increment()">Disabled switch</md-switch>
|
|
|
|
<p>Toggle count: {{toggleCount}}</p>
|
|
</div>
|