angularjs 默认跳转

angularjs  的 $state.go() 跳转页面 ,目标页面的js函数 的执行 先于  $locationChangeStart 的监听函数。

故意 添加 timeout 可以使 controller 在locationchangestart 之后触发。

posted @ 2018-11-07 16:26  RoadAspen  阅读(320)  评论(0编辑  收藏  举报