Hey, i was wondering about best practices regard using pure observable vs subscribe to an observable and use an array.
option 1 - "pure observable"
this.schoolObserve = this.angularFire.database.list(Paths.cards) and then in the HTML async pipe (and rxjs operators for handling the data)
option 2 - "subscribe to an array"
this.angularFire.database.list(Paths.cards).subscribe (response => this.school=response) and then treat it as a normal array.
i do not used async pipe in any case. I would prefer option 2 --> prepare your data in TS code so your template can simply consume them to display data. No magic!
I do not like it, that there is something like an async pipe ^^.
like i said it is only my opinion. I do want as less logic in my templates as possible. I do not want to look in html code if something does not work with my observable.
Like urm47 says you often need to transform your results or you want to store them in a service to reuse the data and so on.
You should try both and use this, what feels better to you or fit your requirements best.