Using angularfire with realtime database

269 views
Skip to first unread message

IT Management

unread,
Dec 13, 2021, 8:10:56 PM12/13/21
to Firebase Google Group
Hi Team

i am using a ionic angular app with realtime database. 

on creating the app i see it installed

angular/fire 7.2.0
firebase ^9.4.0
angular ~13.0.0

my module did imported like below
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
provideFirebaseApp(() => initializeApp(firebaseConfig)),
provideDatabase(() => getDatabase()),


My struggle is to be able to use it now to query Firebase db. I see examples for FireStore
where it does like

import { Firestore, collectionData, collection } from '@angular/fire/firestore';
and then use an instace to query.


Same thing does not work by importing Database. I dont see it even valid to import
import { FireDatabase } from '@angular/fire/database'

and if i import
import { Database } from '@angular/fire/database'

then i do not see .object or .list methods here. Please advise

Regards
Vikram
Reply all
Reply to author
Forward
0 new messages