Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffe7293

Browse files
committed
route redirect
1 parent 84ae271 commit ffe7293

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/route.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,9 @@ function $RouteProvider(){
588588
$location.url(next.redirectTo(next.pathParams, $location.path(), $location.search()))
589589
.replace();
590590
}
591+
scope.$emit('$routeRedirect', next, last);
591592
}
592-
scope.$emit('$routeRedirect', next, last);
593+
593594
}
594595

595596
$q.when(next).

0 commit comments

Comments
 (0)