3
I want to implement firebase in my app (Ionic).
When I test a message:
Unknown Provider: $firebaseArrayProvider <- $firebaseArray <- Loginctrl
- Should I declare my firebase settings in the "app" or "index"? I’ve seen of the two ways to do on the web.
- I would like to create a table containing the user information in firebase as: email, name, password, registration info in general.
- Each user would have related their respective accounts their sent and received messages.
Guys, help me, I’ve read a lot about it but I’m really struggling with this part!
you injected Firebase into your app.js?
– DiegoAugusto
Good afternoon @Diegoaugusto, inject would install and in the project and link? I’ve done this already. :(
– Henrique Gusmão
Injecting would be that:
angular.module('myApp', ['firebase'])
– DiegoAugusto
I’ve done that already!
angular.module('starter', [
 'ionic', 'ngCordova', 'firebase',...
– Henrique Gusmão
Already tried to update angularFire library?
– DiegoAugusto
Try changing your angular-fire statement in index.html to this:
<script src="https://cdn.firebase.com/libs/angularfire/2.1.0/angularfire.min.js"></script>
and see if it works– DiegoAugusto
I downloaded yesterday through "npm install" the angularfire and firebase. I copied angularfire.min.js and firebase.js to my project JS folder. I believe it is updated right?
– Henrique Gusmão
I changed my statement and it appeared this: Ionic.bundle.js:13441 Uncaught Error:[$injector:modulerr] Failed to instantiate module Starter 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.
– Henrique Gusmão
Not always the latest version is downloaded. According to the documentation just follow these same steps. https://github.com/firebase/angularfire/blob/master/docs/quickstart.md
– DiegoAugusto
Let’s go continue this discussion in chat.
– DiegoAugusto