Hey there, I've been working on retrieving a Firebase object using Angular and have successfully achieved that. However, I'm now faced with the challenge of how to navigate deeper into the data that is being returned (check out the images linked below).
Current output and My Firebase object structure
Here's the path I took to reach this point:
ClientService
getClientsOfThisBranch(branchNumber:string){
return this.db.list('/clients/' + branchNumber).snapshotChanges();
}
SomeComponent
clientInfo$: any[] = [];
this.clientService.getClientsOfThisBranch('17').subscribe(data => {
data.forEach(x => { console.log( x.payload.val() ); this.clientInfo$.push(x.payload.val())})
});
If anyone has insights or suggestions on how I can proceed further with this, I would really appreciate it. Thank you for your help!