-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firestore Support #956
Comments
+1 An official release with firestore support would be great! In the mean time I was able to copy and modify the $firebaseObject factory to create a $firestoreObject factory that seems to work for what I need (just display data from Firestore that updates as the DB updates - mostly just the $loaded() and $destroy() methods) DISCLAIMERS
The changes I made to the $firebaseObject factory were as follows (Version 2.3.0 of Angular Fire): Line 1215 - Firestore refs now have the key renamed to id and moved up a level Line 1380 - I had to duplicate one function in $firebaseUtils in order to handle the new data structure introduced by Firestore Line 1590 - Destroying Listeners changed in Firestore - https://firebase.google.com/docs/firestore/query-data/listen#detach_a_listener Line 1597 - changed on() to onSnapshot() Lines 1598 - changed once() to get() The changes I made to the $firebaseUtils factory were as follows (Version 2.3.0 of Angular Fire): Line 2296 - duplicated updateRec() to create updateFirestoreRec() Line 2297 - Handle data for both Firestore collections and documents in the new updateFirestoreRec() function Hopefully I didn't miss anything here. Basically there are a couple of places where on, once, and off functions need to be swapped out and then a couple of places where the data format is slightly different for Firestore than it was for Realtime Database. |
Just found an issue with my change on Line 2297. Just need to add a conditional to make sure that there is actually data in Firestore to set to the data variable.
|
I too am really interested in using firestore on angularjs. |
I need to add firebase to my app which is already written in the angularjs. |
@pavankumarkatakam you could use firestore with angularjs using the javascript lib, I developed a little project that way |
@wwrrss Can you give us some code? Thank's |
I would love support for firestore in this project. For everyone else needing a quick fix, here are the docs to firestore (Docs) showing exactly how to use standard javascript to access it. You will need to do quite a bit of legwork yourself. Good Luck |
@jamesdaniels can you confirm that there are no plans to bring Firestore to this library? This issue has a lot of comments/reactions and I'd like to set the record straight. |
Are you planning add support for new Firebase feature called Firestore? I've looked at AngularFire2 and it has. What about AngularFire1?
The text was updated successfully, but these errors were encountered: