FirebaseObjectObservable import throwing an error


#1

Hi,
I am trying to import the FirebaseObjectObservable from ‘angularfire2/database’ but it seems an error is throwing saying this is not recognized as an import.

Has this been updated?

Thanks,
Brian


#2

I believe so. Import a plain old observable instead. I’d check out the readme. There’s an example near the beginning


#3

import { AngularFireDatabase, FirebaseObjectObservable } from ‘angularfire2/database-deprecated’

and in appmodule.ts

import { AngularFireDatabaseModule, } from ‘angularfire2/database-deprecated’;


#4

i have an updated angularfire2 project here that used RTDB and not FireStore https://github.com/aaronksaunders/ionic3-ngrx4-angularfire


#5

What version of angularfire2 are you using?

In the latest version FirebaseObjectObservable and FirebaseListObservable are removed and instead we use : AngularFireObject & AngularFireList