本文介绍了火力地堡,AngularFire错误:模块火力不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置火力点,angularfire我约曼,AngularJS应用。我跟着这个教程这里(),但我不断收到一个

 未捕获的错误:[$喷油器:modulerr]未能实例由于模块MyApp的:
错误:[$喷油器:modulerr]未能实例由于模块火力点:
错误:[$喷油器:NOMOD]模块'火力'不可!你要么拼写错误的并购...<&省略GT; ... 1)

我如何突破这个?

我相信它是从哪个说它下载火力对我们,但我可能把它在错误的地方教程这两行。我试图把它的插图中head标签,右靠凉亭组件,以及紧挨着我的所有脚本

 <脚本的src =的https://cdn.firebase.com/js/client/1.0.15/firebase.js'>< / SCRIPT>
<脚本的src =的https://cdn.firebase.com/libs/angularfire/0.8.0/angularfire.min.js'>< / SCRIPT>


解决方案

我有这个问题,并发现装载火力点,那么棱角分明,然后angularfire正常工作。像这样

 < HEAD>
  &所述; SCRIPT SRC =htt​​ps://cdn.firebase.com/js/client/2.2.2/firebase.js>&下; /脚本>
  <脚本SRC =JS / app.js>< / SCRIPT>
  <脚本SRC =JS / controllers.js>< / SCRIPT>
  <脚本SRC =JS / services.js>< / SCRIPT>
  &所述; SCRIPT SRC =htt​​ps://cdn.firebase.com/libs/angularfire/1.0.0/angularfire.min.js>&下; /脚本>
< /头>

I am trying to setup firebase, angularfire for my Yeoman, AngularJS Application. I followed this tutorial here (https://www.firebase.com/tutorial/#tutorial/angular/0) but I keep getting a

Uncaught Error: [$injector:modulerr] Failed to instantiate module MyApp due to:
Error: [$injector:modulerr] Failed to instantiate module firebase due to:
Error: [$injector:nomod] Module 'firebase' is not available! You either misspelled the m...<omitted>...1)

How do I get past this?

I believe it is these two line from the tutorial which says it downloads firebase for us but I might be putting it in the wrong place. I tried putting it inbetween the head tags, right by the bower components, as well as next to all my scripts

<script src='https://cdn.firebase.com/js/client/1.0.15/firebase.js'></script>
<script src='https://cdn.firebase.com/libs/angularfire/0.8.0/angularfire.min.js'></script>
解决方案

I had this issue and found that loading firebase, then angular, then angularfire worked fine. Like this

<head>
  <script src="https://cdn.firebase.com/js/client/2.2.2/firebase.js"></script>
  <script src="js/app.js"></script>
  <script src="js/controllers.js"></script>
  <script src="js/services.js"></script>
  <script src="https://cdn.firebase.com/libs/angularfire/1.0.0/angularfire.min.js"></script>
</head>

这篇关于火力地堡,AngularFire错误:模块火力不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 20:44