How to properly use Firebase

I'm pretty sure this is how you're supposed to use Firebase and the `$firebase` service.