如何修复 acute-select.js 源代码以解决代码缩小问题?
how to fix acute-select.js source code to resolve code minification issue?
Acute select 指令在进行代码缩小时生成 Injector Unknown Provider error。
'Inline array annotations' are not properly implemented in the acute select directive (source code).
我尝试通过添加内联数组注释来重写源代码,但我仍然遇到同样的错误。
源代码有什么问题?如何解决?
[已更新]
对每个控制器、指令、服务、提供者、工厂进行以下更改
controller: function($scope, $element, $window, $rootScope, $timeout, $filter, navKey, safeApply)
以上改为
controller: ['$scope', '$element', '$window', '$rootScope', '$timeout', '$filter', 'navKey', 'safeApply', function($scope, $element, $window, $rootScope, $timeout, $filter, navKey, safeApply){......}]
Acute select 指令在进行代码缩小时生成 Injector Unknown Provider error。
'Inline array annotations' are not properly implemented in the acute select directive (source code).
我尝试通过添加内联数组注释来重写源代码,但我仍然遇到同样的错误。
源代码有什么问题?如何解决?
[已更新]
对每个控制器、指令、服务、提供者、工厂进行以下更改
controller: function($scope, $element, $window, $rootScope, $timeout, $filter, navKey, safeApply)
以上改为
controller: ['$scope', '$element', '$window', '$rootScope', '$timeout', '$filter', 'navKey', 'safeApply', function($scope, $element, $window, $rootScope, $timeout, $filter, navKey, safeApply){......}]