轉自:http://www.cnblogs.com/jintaostudy/p/6236948.html
$routeChangeStart屬於$route模塊,使用將要改變的路由和當前路由對比,在沒有跳轉之前
參數包括 function(event, next, current)
next
$locationChangeStart屬於$location模塊,使用在路由已經改變之後
參數包括 function(event, newUrl, oldUrl)
轉自:http://www.cnblogs.com/jintaostudy/p/6236948.html
$routeChangeStart屬於$route模塊,使用將要改變的路由和當前路由對比,在沒有跳轉之前
參數包括 function(event, next, current)
next
$locationChangeStart屬於$location模塊,使用在路由已經改變之後
參數包括 function(event, newUrl, oldUrl)