The ui-switch
directive (not to be confused with ng-switch
) lets you create a toggle switch control bound to a boolean ngModel
value.
It requires ngModel
. You can also use ngChange
in conjunction with [switch]
to trigger functions in response to model changes.
<ui-switch ng-model="invoice.paid"></ui-switch>
comments powered by Disqus