Closed tarsislima closed 9 years ago
I'm not quite sure what you're asking here. The $confirm
service returns a promise. If the person hits the OK button, the success function will be executed. If they hit cancel the error function will be executed.
$confirm().then(success, error)
That´s right, the 'return promise' escaped me at documentation. Ps: This service is very usefull, Thank´s a lot!
I need call a scope function when the dismiss modal is called. Eg: When i click 'delete' action, a 'highlight' class is added to the row clicked then $confirm service is called, but when i dismiss the modal, i want remove this class.
Some ideia, to resolve this?