How to read/write to nested Firebase Object in Angular #3032
Unanswered
hqinmanama
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working with Angular and Firebase's Real Time Database. I am currently following the AngularFire documentation and am retrieving data as lists. I can't seem to figure out how to get a nested list from within a list.
Here is an example of my Firebase RTDB structure:
I would like to be able to access the
temperamentvalue to update or retrieve. This is initems/Item1/personality/. By following the documentation I have linked above, I am able to access up toitems/Item1/but cannot figure out a way to go beyond that. I have seen some solutions suggesting to use theforEach()function but could not find any documentation to help guide me.I have also noted that the documentation linked above uses the async pipe method, which I believe automatically sorts out the subscription. Currently, I am subscribing to the observables myself within the
app.component.tsfile rather than using the async pipe method. This is working, however, only up to the first level. I am looking to learn how to be able to access the child nodes and more.Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions