aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngView.js
diff options
context:
space:
mode:
authorMisko Hevery2012-06-01 11:31:10 -0700
committerMisko Hevery2012-06-01 16:57:49 -0700
commit7c2428218893f59c6a4499667488009ca67f3385 (patch)
treec78a773e07580423d7c3675ddd5853eb381a4c2b /src/ng/directive/ngView.js
parent885fb0dd0743859a8985c23e4d0c1855a2be711e (diff)
downloadangular.js-7c2428218893f59c6a4499667488009ca67f3385.tar.bz2
chore($route): rename events
BREAKING CHANGE rename $beforeRouteChange to $routeChangeStart rename $afterRouteChange to $routeChangeSuccess
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();