I am facing a challenge in retrieving a specific node from my firebase database.
https://i.sstatic.net/YDevB.png
The technologies I am using include:
- "angularfire2": "^5.0.0-rc.4",
- "firebase": "^4.9.0",
In my component code, you can find the following lines :
this.id = this.route.snapshot.paramMap.get('id');
auth.appUser$.subscribe(appUser => this.appUser = appUser );
if (this.id)
{
//Live game state info
this.subscription = this.gameService.getLive(this.id).subscribe(action => {
this.game = action.payload.val();
console.log(this.game);
});
}
}
The function called in my gameService is structured as follows :
getLive(gameId)
{
return this.db.object('/games/live/' + gameId).snapshotChanges();
}
The current obstacle I am facing is when trying to access the "StartedAt" node within the rounds. Even though I have a complete view of the "game" node, accessing "startedAt" from a specific round is proving challenging.
https://i.sstatic.net/t9Bza.png
If anyone has insights on how to successfully retrieve the "startedAt" data from a specific round, your input would be greatly appreciated!