frapontillo/angular-bootstrap-switch — pull request #4 by chthomos (2013-11-07 16:22:21+00:00)
Title: Change event attribute

I cam across a use case where I cannot user scope watch for my model handled by the angular bootstrap switch (Actually around 100 switches are rendered into view from a array). I have implemented the "change-event" attribute which is called when the user changes the switch.

Tried to use ng-change in the checkbox but this resulted in being fired during switch initialization.

Example:
in view:

and in app.js

$scope.modelChanged = function() { ... //model has changed }