angular/angular.js — Issue #592: $route should allow canceling the navigation
Author: vojtajina
Created: 2011-10-13 21:37:10+00:00
State: open

we need api for allowing that during $beforeRouteChange event.

With new $location is easy, as we can revert $location and then it will never be propagated into browser.

The difficult part is, if we want to allow canceling route change which was triggered by browser (user has typed different url).
The same propblem is when using hashbang mode, then clicking any link means updating the browser's address bar first...