AngularJS $routeProvider Resolve Method Not Working

前端 未结 1 1397
清歌不尽
清歌不尽 2021-01-26 06:52

In my code, I define the following two routes:

    $routeProvider.when(\'/problem/report\', {
        templateUrl: \'/app/management/problem/reportAProblem.html\         


        
1条回答
  •  伪装坚强ぢ
    2021-01-26 07:16

    Add return:

    authorized: ['$authorization', function($authorization) { **return** $authorization.authorize(); }]
    

    0 讨论(0)
提交回复
热议问题