Javascript 爱奥尼亚+;firebase,错误模块';firebase';不可用

Javascript 爱奥尼亚+;firebase,错误模块';firebase';不可用,javascript,angularjs,firebase,ionic-framework,Javascript,Angularjs,Firebase,Ionic Framework,我正在使用最新的ionic,我想为我的应用程序实现firebase后端。我遵循了ionic入门指南,然后使用bower安装来安装firebase和angular fire 产生的错误是: Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to: Error: [$injector:modulerr] Failed to instantiate module starter.controlle

我正在使用最新的ionic,我想为我的应用程序实现firebase后端。我遵循了ionic入门指南,然后使用bower安装来安装firebase和angular fire

产生的错误是:

Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to:
Error: [$injector:modulerr] Failed to instantiate module starter.controllers due to:
Error: [$injector:modulerr] Failed to instantiate module firebase due to:
Error: [$injector:nomod] Module 'firebase' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
因此,至少对我来说,将firebase链接添加到index.html并不能解决这个问题。使用bower安装firebase,它应该通过将“firebase”传入controller.js自动绑定,但是它会产生此错误。有什么想法吗?提前感谢

到目前为止,我在应用程序中所做的更改如下:

Index.html

controller.js


好的,这是我的解决方案,我完全从头开始,而是创建了带有侧菜单的ionic应用程序:

离子启动myApp侧菜单

然后用凉亭和凉亭安装firebase安装angularfire

然后将以下html链接添加到index.html:

<script src="lib/firebase/firebase.js"></script>
<script src="lib/firebase-simple-login/firebase-simple-login.js"></script>
<script src="lib/angularfire/dist/angularfire.js"></script>

angular.module('starter', ['ionic', 'starter.controllers', 'starter.services'])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
  });
})
angular.module('starter.controllers', ['firebase'])

.controller('DashCtrl', function ($scope, $firebase) {

  // TV Shows Table
  var moviesRef = new Firebase("https://moviehunt.firebaseio.com/");
  var sync = $firebase(moviesRef);
  $scope.movies = sync.$asArray();

})
<script src="lib/firebase/firebase.js"></script>
<script src="lib/firebase-simple-login/firebase-simple-login.js"></script>
<script src="lib/angularfire/dist/angularfire.js"></script>