How to load js file on ionic
<p>I am trying to use <a href="https://github.com/katowulf/Firebase.getAsArray" rel="nofollow">Firebase.getAsArray</a>,
I include it on my index.html:</p>

<pre><code>     &lt;script src="lib/firebase.js"&gt;&lt;/script&gt;
     &lt;script src="lib/firebase-as-array.min.js"&gt;&lt;/script&gt;
     &lt;!-- AngularFire --&gt;
     &lt;script src="lib/angularfire.min.js"&gt;&lt;/script&gt;
</code></pre>

<p>when I am trying to use it I get </p>

<blockquote>
  <p>ionic.bundle.js:26794 ReferenceError: getAsArray is not defined
      at Object. (<a href="http://localhost:8100/js/services.js:14:12" rel="nofollow">http://localhost:8100/js/services.js:14:12</a>)</p>
</blockquote>

<p>I understand the I need to load this on ionic v1.7,</p>

<p>my code:</p>

<pre><code>     .factory("Tables", function ($firebaseArray, $rootScope, $window) {
    $rootScope.eventId = $window.localStorage.getItem('eventId');
    var itemsRef = new Firebase("https://....firebaseio.com/events/" + $rootScope.eventId + "/tables");
    return getAsArray(itemsRef);
  })
</code></pre>

<p>Is any way to load it with ionic way?</p>