According to Angularfire2 Docs, it says that;
AngularFireDatabase
allows you to work with the Realtime Database, Firebase's original database. It's an efficient, low-latency solution for mobile apps that require synced states across clients in realtime.
However, There is AngularFireDatabaseModule
, which I have no idea what is it. Therefore, I wanted to know what are these two in more detail (provide a more detailed link if available) and when to use AngularFireDatabase
and AngularFireDatabaseModule
.
AngularFireDatabaseModule
is the module declaration that you need to import into your@ngModule
in yourapp.module
.AngularFireDatabase
allows you to work with the realtime database and can be injected into components.app.module.ts:
app.component.ts: