aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngView.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/directive/ngView.js')
-rw-r--r--src/ng/directive/ngView.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/directive/ngView.js b/src/ng/directive/ngView.js
index 4924ed1a..1d2a5d29 100644
--- a/src/ng/directive/ngView.js
+++ b/src/ng/directive/ngView.js
@@ -115,7 +115,7 @@ var ngViewDirective = ['$http', '$templateCache', '$route', '$anchorScroll', '$c
var lastScope,
onloadExp = attr.onload || '';
- scope.$on('$afterRouteChange', update);
+ scope.$on('$routeChangeSuccess', update);
update();