在此先感谢,我是AngularJS的新手,并且不知道我在下面的代码片段中遗漏了什么,它给了我一个错误“ReferenceError:route is not defined”
app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.
when('/customers/*/edit',
route.resolve('CustomerCtrl', 'customer/js/insurance-customer.js'))
.otherwise({ redirectTo: '/customers/*/edit' });
}]);
它在此行显示错误 route.resolve “ReferenceError:路由未定义”