-1

这是我的第一个 AngularJS 应用程序,所以我是个菜鸟,一直在努力解决问题。但我在我的 chrome 控制台中收到一个错误:

Uncaught Error: [$injector:modulerr]      
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=klikdaily-merchant
&…2F%2F127.0.0.1%3A8080%2Fnode_modules%2Fangular%2Fangular.min.js%3A439%3A21)
(anonymous function) @ angular.js:1829
(anonymous function) @ angular.js:31768
q    @ angular.js:4681
g    @ angular.js:31768
cb   @ angular.js:31768
c    @ angular.js:31768B
c    @ angular.js:31768f
e    @ angular.js:31768
(anonymous function) @ angular.js:31768
b    @ angular.js:31768
Sf   @ angular.js:31768
d    @ angular.js:31768

在我插入模块'angular.circular.timepicker.js'之后一切都很好,并且出现了错误。

有什么想法吗?之前谢谢

我的模块列表

angular.module('klikdaily-merchant',['ngMaterial','angular.circular.timepicker'
,'ngMessages', 'ngAnimate', 'vAccordion' , 'material.svgAssetsCache','ngRoute',
'jkAngularCarousel','ngCookies','ngMdIcons'])

我的脚本列表

<script src="./node_modules/angular/angular.min.js"></script>
<script src="./node_modules/angular-animate/angular-animate.min.js"></script>
<script src="./node_modules/angular-aria/angular-aria.min.js"></script>
<script src="./node_modules/angular-material/angular-material.min.js"></script>
<script src="./node_modules/angular-route/angular-route.min.js"></script>
<script src="./node_modules/angular-messages/angular-messages.min.js"></script>
<script src="./node_modules/angular-cookies/angular-cookies.min.js"></script>
<script src="./node_modules/angular-material-icons/angular-material-icons.min.js"></script>
<script src="./node_modules/angular-lib/svg-assets-cache.js"></script>
<script src="./node_modules/angular-lib/v-accordion.js"></script>
<script src="./node_modules/angular-circular-timepicker/moment/moment.js"></script>
<script src="./node_modules/angular-circular-timepicker/dist/javascript/angular.circular.timepicker.js"></script>
<script src="app/app.js"></script>
<script src="app/jk-carousel.min.js"></script>
<script src="https://cdn.smooch.io/smooch.min.js"></script>

我选择 timepicker.js 从

http://angularscript.com/angularjs-circular-date-time-picker/

4

1 回答 1

1

请尝试注入这样的依赖项 -'angular.circular.timepicker' 没有 'js' 扩展名。

angular.module('klikdaily-merchant',['ngMaterial','angular.circular.timepicker'
,'ngMessages', 'ngAnimate', 'vAccordion' , 'material.svgAssetsCache','ngRoute',
'jkAngularCarousel','ngCookies','ngMdIcons'])

于 2016-09-07T01:31:51.467 回答