AngularAgility/AngularAgility — pull request #55 by cliechty (2014-07-15 23:04:22+00:00)
Title: Fix default navigateAwayStrategy not confirming more than once per route

fixed issue were confirmUiRouterAndDom onNavigateAwayStrategy would not fire again when navigating to the same route and have dirty fields.

To reproduce issue:
Given page with 2+ routes
and one page with aaForm
1. change a form value
2. navigate to other route
3. note confirmation prompt
4. select on (continue)
5. navigate back to form
6. change form value again
7. navigate to other route (same as 2)
Note: this time there was no confirmation

This change pulls the code into line with ui-routers event documentation: https://github.com/angular-ui/ui-router/wiki#state-change-events