Angular 6 firebase2

Angular 6 firebase2
0.0 0

#1

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

newSize:any=’’;
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

getvalue(){
return this.gold=this.collection.gold,
console.log(this.gold);
where collection is a observablefirelist<>


#2

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


#3

well stackoverflow is overrated
all questions just get downvoted