Dav*_*ury 7 angularjs angularjs-routing
使用ngRoute可以在事件中挂钩:$routeChangeStart并执行不同的操作......
 app.run(function ($rootScope, $location) {
    $rootScope.$on("$routeChangeStart", function (event, next, current) {
    ................
使用UI-Router可以实现相同的功能吗?
kar*_*una 14
是的,这是可能的:
$rootScope.$on("$stateChangeStart",
    function (event, toState, toParams, fromState, fromParams) {
| 归档时间: | 
 | 
| 查看次数: | 7591 次 | 
| 最近记录: |