$scope.$on('$routeChangeStart', function($event, next, current) { // ... you could trigger something here ... });以下事件也可用(它们的回调函数采用不同的参数):
- $ routeChangeSuccess
- $ routeChangeError
- $ routeUpdate-如果将reloadOnSearch属性设置为false

$scope.$on('$routeChangeStart', function($event, next, current) { // ... you could trigger something here ... });以下事件也可用(它们的回调函数采用不同的参数):