javascript - 尽管声明了应用程序模块不可用

标签 javascript angularjs

我之前在一个项目中使用过 Angular 一次,但是尝试再次快速设置一些东西给了我这个:

Module 'app' is not available! You either misspelled the module name or forgot to load it.

据我所知,我已经在 app.js 中正确声明了 app

为了方便起见,我做了一个小笨蛋:http://plnkr.co/edit/FWHQ5ZDAByOWsL9YeMUH?p=preview

最佳答案

您错过了源文件中的.:

替换

`<script src='/app.js'></script>`

`<script src='./app.js'></script>`

关于javascript - 尽管声明了应用程序模块不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34768233/

相关文章:

javascript - 如何使用underscore.js对文本混合数字进行排序

iOS UIWebView 和 Cookies 存储

javascript - CSS Force span 没有父样式

javascript - 将客户端模板与主布局分开的好方法

javascript - 是否可以捕获 window.location.replace 事件?

javascript - 无法在 CLI 上运行 babel 命令

javascript - 我如何限制 angularjs 中的 $http 请求?

angularjs - 在 AngularJS BootstrapUI Typeahead 中,$viewValue 是什么?

angularjs - $uibModalInstance 未定义

javascript - TypeScript:连接具有不同元素类型的数组