Change toggle button state after question

Hi good people,

I’m having trouble just trying to do a behavior. I have a toggle button with a ng-click event. When clicked, i use a $ionic Popup with a warning message about what will happen if he change that state. The problem is: if I choose OK or CANCEL, the toggle has already changed his state anyway. There are any way that I cancel the event of change if he press CANCEL and only apply animation if I choose OK ? :confused:

Thanks.

Have you tried to prevent event from propagating using $event.stopPropagation()?