frapontillo / angular-bootstrap-switch

AngularJS directive for the bootstrap-switch jQuery plugin.
Apache License 2.0
301 stars 108 forks source link

confirmation for toggle switch #124

Closed smohammedyasin closed 7 years ago

smohammedyasin commented 7 years ago

Hi,

How can i show confirmation popup before set "ON" Or "OFF". i have found very good script in jquery bootstrap. https://jsfiddle.net/hL0as0mv/122/ . could any one help me get same way in angluar switch.

Appreciate for Best & Quick response

frapontillo commented 7 years ago

You can use switch-change to do whatever you want and eventually revert to the inverse value if the confirmation is not successful.

Please re-open the issue if you still have this problem.

vidyashreejy commented 4 years ago

Please explain how to use switch-change to pop up a confirmation modal before toggling the switch. I'm new to angular so please help me. thanks in advance