Comments (3)
Any reason why it couldn't just be FirebaseValue
, and support any kind of child value?
from angularfire.
Unless we're keeping the DataSnapshot around (which isn't a terrible idea), we'll need to transform any primitive into an object to keep the key around.
Take the following data structure:
{
name: "Coco"
}
Then in AF2 we would do something like this:
class MyComponent {
constructor(private af: AngularFire) {
const obj = af.object('/name');
obj.subscribe((data) => {
console.log(data); // { value: "Coco", key: "name" }
});
}
}
So we'll have to come up with a naming strategy for the value
and key
properties, but unless we return a DataSnapshot, we'll have to take this approach.
from angularfire.
Implemented in 35eba4e
from angularfire.
Related Issues (20)
- Angular 15 Firebase: compat error HOT 2
- Error with Analytics after updating to v17 HOT 2
- Angular17 Standalone Application with firebase throws error after compiling HOT 2
- AngularFire 17.0.0 throwing errors with Angular 17.0.0 HOT 3
- feat: allow AngularFire to be used in a zoneless angular application HOT 14
- reauthenticateWithPhoneNumber throws auth/user-mismatch error HOT 1
- collectionData doesn't allow angular app to become stable with angular 17 and ssr (getDocs does) HOT 2
- Profile CRUD
- [BUG] optimization: true cause Service functions is not available Error: Service functions is not available
- @ngx-env/builder:application is not a recognized builder HOT 4
- Deployment to Google Cloud Run using Angular v17 Application Builder not working
- [error] AssertionError [ERR_ASSERTION]: catch clause variable is not an Error instance HOT 2
- Appcheck on Angular 17 does not work! HOT 3
- How to tell FCM to load the firebase-messaging-sw file in a different call route(href)? in @angular/fire (FCM) HOT 1
- where is firestore.fieldValue? HOT 1
- After updating angular cli and angular core to 15, I'm getting error in firebase as no firebase app default has been created HOT 1
- serverTimestamp fails when uploading to firestore. HOT 2
- Can't set custom lang to email templates HOT 2
- Unhandled Promise rejection Analytics with SSR HOT 1
- [Android] Firestore snapshot listeners is slow to retrieve data.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularfire.