Angular 6 firebase2

hi im current working on a minigame.
and if i want to extract how much gold i have on firebase.
how to do it they changed so many times last year syntax
to update i use this

setValue(data: any) {
return this.collection.update(‘gold’, { gold: this.newSize });
it updates amount of gold i have in childobject to gold in the game to the server,
but how do i go about to retrieve the gold on server on app startup
so it doesnt start all over at 0"?

i triedsomething like this

where collection is a observablefirelist<>

This question might be better suited to a post on Stack Overflow?

1 Like

well stackoverflow is overrated
all questions just get downvoted