Callable
Index
Modules
Interfaces
Type aliases
Functions
Type aliases
EmulatorMockTokenOptions
EventType
Functions
enableLogging
-
Logs debugging information to the console.
Parameters
-
Optional logger: boolean | ((a: string) => any)
Enables logging if
true
; disables logging iffalse
. You can also provide a custom logger function to control how things get logged. -
Optional persistent: boolean
Remembers the logging state between page refreshes if
true
.
Returns any
-
Gets the
Database
service for the default app or a given app.firebase.database()
can be called with no arguments to access the default app'sDatabase
service or asfirebase.database(app)
to access theDatabase
service associated with a specific app.firebase.database
is also a namespace that can be used to access global constants and methods associated with theDatabase
service.// Get the Database service for the default app var defaultDatabase = firebase.database();
// Get the Database service for a specific app var otherDatabase = firebase.database(app);