Angularjs 配置()的角度喷油器错误

Angularjs 配置()的角度喷油器错误,angularjs,textangular,Angularjs,Textangular,我想在我的angular应用程序中插入配置。该应用程序还包含一个run对象 但是当我添加config选项时,我得到一个$injector:modulerr错误。我找不到错误 var myApp = angular.module('myApp',[ 'ngAnimate', 'ui.bootstrap', 'ui.router', 'angular.filter', 'angularUtils.directives.dirPagination', '

我想在我的angular应用程序中插入配置。该应用程序还包含一个run对象

但是当我添加config选项时,我得到一个$injector:modulerr错误。我找不到错误

var myApp = angular.module('myApp',[
    'ngAnimate',
    'ui.bootstrap',
    'ui.router',
    'angular.filter',
    'angularUtils.directives.dirPagination',
    'validation.match',
    'ngSanitize',
    'ngCookies',
    'pascalprecht.translate',
    'toggle-switch',
    'angucomplete-alt',
    'cgPrompt',
    'dndLists',
    'ngFileUpload',
    'ui.router.breadcrumbs',
    'angular-bind-html-compile',
    'rzModule', // range slider (i.e. for price filter)
    'ngFileSaver',
    'angular-input-stars',
    'textAngular',
    'textAngular-uploadImage'
]);

myApp.config(function($provide) {
    $provide.decorator('taOptions', function($delegate) {
        $delegate.toolbar[1].push('uploadImage');
        return $delegate;
    });
});


myApp.run(['$rootScope', '$window', '$location', '$stateParams', '$api', '$translate', '$transitions', '$state',
    function($rootScope, $window, $location, $stateParams, $api, $translate, $transitions, $state) {
        //rootscope
}]);
关于textAngular uploadImage模块()。当我删除配置选项时,我的应用程序运行良好,但当然,我不能使用该模块

这是什么原因?我在html中包含了所有必需的文件,textAngular()工作正常


我怎样才能解决这个问题?或者textAngular中的正常上载功能还有其他选项吗?我也尝试了这个解决方案(),但我得到了相同的错误。

尝试下面的代码

myapp.config(['$provide', function($provide){

    $provide.decorator('taOptions', ['$delegate', function(taOptions){
    taOptions.toolbar[1].push('uploadImage');
    }
    return taOptions;
    }];
    });
你们需要在下面的编辑器中注册上传图片

taRegisterTool('uploadImage', {
        iconclass: "fa fa-user",
        action: function(){
            //code
        }
    });

您是否尝试过myApp.config(['$provide',function($provide){//code here}])您尚未提供完整的错误消息。它包含解析它所需的所有信息(它实际上是一个URL,指向以可读形式显示它的页面)。谢谢。问题出在
['$provide',函数($provide)
上。我现在从工作中得到了解决方案!