-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Currently the providers automatically unwrap the DataSnapshots returned from the Firebase database.
Should we provide an option to keep the DataSnapshot intact?
class MyComponent {
constructor(private af: AngularFire) {
const obj = af.object('/name', { snapshot: true });
obj.subscribe((snap) => {
console.log(snap);
});
}
}
Or perhaps we could use generics
class MyComponent {
constructor(private af: AngularFire) {
const obj = af.object<DataSnapshot>('/name');
obj.subscribe((snap) => {
console.log(snap);
});
}
}