码迷,mamicode.com
首页 > 其他好文 > 详细

路线更改事件 $routeChangeStart 与 $locationChangeStart

时间:2016-12-30 15:34:37      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:current   event   模块   code   change   cat   art   跳转   out   

$routeChangeStart属于$route模块,使用将要改变的路由和当前路由对比,在没有跳转之前

  参数包括 function(event, next, current) 

  next

 

  $locationChangeStart属于$location模块,使用在路由已经改变之后

  参数包括 function(event, newUrl, oldUrl)

路线更改事件 $routeChangeStart 与 $locationChangeStart

标签:current   event   模块   code   change   cat   art   跳转   out   

原文地址:http://www.cnblogs.com/jintaostudy/p/6236948.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!