How would one watch/trigger an event on a route change?
Note : this is a proper answer for a legacy version of Angular, see this question for updated version
$scope.$on('$routeChangeStart', function(next, current) {
... you could trigger something here ...
});
The following events are also available (their callback functions take different arguments):
See the $route docs.
There are two other undocumented events:
See What's the difference between $locationChangeSuccess and $locationChangeStart?