Error: [$injector:strictdi] function($scope) is not using explicit annotation and cannot be invoked in strict mode
请问这个报错是为什么呢?
我在 uib-modal 中使用了 ng-img-crop
因为你使用了StrictDi模式,像下面的写法
function($scope){}
要改成这样
['$scope',function($scope){}]
Error: [$injector:strictdi] function($scope) is not using explicit annotation and cannot be invoked in strict mode
请问这个报错是为什么呢?
我在 uib-modal 中使用了 ng-img-crop
因为你使用了StrictDi模式,像下面的写法
function($scope){}
要改成这样
['$scope',function($scope){}]