From 7c2428218893f59c6a4499667488009ca67f3385 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 1 Jun 2012 11:31:10 -0700 Subject: chore($route): rename events BREAKING CHANGE rename $beforeRouteChange to $routeChangeStart rename $afterRouteChange to $routeChangeSuccess --- src/ng/directive/ngView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/directive/ngView.js') 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(); -- cgit v1.2.3