I successfuly added Firebase to my app with authentication, storing and retrieving data and eveything works well. But now i want to optimize my queries.
Currently, i am using this kind of query for retrieving my data :
Use a Firebase database rule to require automatic indexing of your data according to your field(s) of interest. Then use the Firebase API to return the first X many or last X many items. I don’t see why you need to use this.http. Import either Firebase or AngularFire, inject it as a service, and use the Firebase commands.
I recently followed a video tutorial on Udemy and the presented solution was using this syntax. Then i have also created new database rules for automatic indexing.
The last solution will be to use AngularFire as a service like you said it.