angular-unsavedChanges
angular-unsavedChanges copied to clipboard
Confirm dialog appears twice
When using Angular UI Router, the angular-unsavedChanges module display the confirm box twice, because two events are being watched: $locationChangeStart and $stateChangeStart.

Did I'm missing something or is it a bug?
@facultymatt, looks like I needed to tune up the default configuration: https://github.com/facultymatt/angular-unsavedChanges#routeevent
How did you tune it? What is the new config?
Had the same problem.
unsavedWarningsConfigProvider.routeEvent = '$stateChangeStart'; in config helped.