未捕获的错误:[$ injector:modulerr] http://errors.angularjs.org/1.5.9/$injector/modulerr?p0=

时间:2018-07-16 11:23:59

标签: asp.net angularjs typescript angularjs-directive angular-ui-bootstrap

当我需要将引导程序从0.14迁移到2.5时,出现此错误。 当我将angular-ui-bootstrap 0.14放上去时,它起作用了,但是当我更改2.5的js时却不起作用。 我是新手,需要帮助。谢谢

  

未捕获的错误:[$ injector:modulerr]   [http://errors.angularjs.org/1.5.9/ $ injector / modulerr?p0 = myapp&p1 = Error%3A%20%5B%24injector%3Aunpr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.5.9%2F%24injector%2Funpr %3Fp0%3DdatepickerDirectiveProvider%0A%20%20%20%20at%20https%3A%2F%2F127.255.0.0%3A444%2FScripts%2FUntyped%2FLibs%2Fangular.min.js%... Libs%2Fangular.min。 js%3A39%3A382)] 1       在angular.min.js:6       在angular.min.js:40       在q(angular.min.js:7)       在g(angular.min.js:39)       在eb(angular.min.js:43)       在c(angular.min.js:21)       at Object.Ic [as bootstrap](angular.min.js:21)       在Object.bootstrap(app.js?v = 800b39c1-3165-4fc0-a44d-1a6c904b6e18:46)       在app.js?v = 800b39c1-3165-4fc0-a44d-1a6c904b6e18:46       在Object.invoke(angular.min.js:42)

在我的app.ts中:

var app: angular.IModule =
        angular.module('myapp', ['ngRoute', 'ngCookies',
            'angular-loading-bar',
            'ngAnimate', 'ngSanitize', 'ngSignalR',
            'angularMoment', 'ngTranslate', 'ui.bootstrap',
            'ui.bootstrap.datetimepicker', 'ngToast',
            'tmh.dynamicLocale', 'googlechart', 'ng.deviceDetector', 'nzToggle',
            'ui.select', 'ui.router', 'unsavedChanges', 'ngAutocomplete',
            "xeditable", "ui.calendar", "infinite-scroll", 'LocalStorageModule', 'angularjs-dropdown-multiselect']);

app.config(['$httpProvider', '$locationProvider', '$stateProvider', '$urlRouterProvider',
        ($httpProvider, $locationProvider, $stateProvider, $urlRouterProvider) => { return new Config($httpProvider, $locationProvider, $stateProvider, $urlRouterProvider); }]);

 app.controller('SignupCtrl', ['$scope', '$location', '$state', '$sce', '$anchorScroll', '$uibModal', 'ModalService', 'UsersService', 'ConfigService',
        Application.Controllers.Signup]);

0 个答案:

没有答案