对于Angularjs中的文件上传 $ upload 正在注入控制器(RegistrationCtrl),但是有多个范围,$ location等被注入其中。然后在向RegistraionCtrl注入$ upload时,我在控制台中获得了一些注入器错误,并且页面加载不正确。
控制器 代码如下:
.controller("registrationCtrl",["$scope","$rootScope","$upload","$location","logger","$http","$q","$modal","$log",function($scope,$rootScope,$upload,$location,logger,$http,$q,$modal,$log){
});