我的plunker没有加载AngularJS。我从我的GoogleDrive使用Editey开始这个页面并在那里运行正常。我使用相同的目录结构将其移动到plunker但它不加载Angular。有帮助吗? 这是我的傻瓜:http://embed.plnkr.co/dEY7ag/
答案 0 :(得分:0)
您的文件名是Factory.js
<script type="text/javascript" src="app/Factories.js"></script>
这就是你得到以下注射错误的原因。
Error: [$injector:unpr] http://errors.angularjs.org/1.4.8/$injector/unpr?p0=MenuFactoryProvider%20%3C-%20MenuFactory%20%3C-%20NavigationController
at Error (native)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:6:416
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:41:121
at Object.d [as get] (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:39:92)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:41:195
at d (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:39:92)
at Object.e [as invoke] (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:39:362)
at M.instance (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:80:336)
at D (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:61:362)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:105)