Open rmariuzzo opened 9 years ago
@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.
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?