FirebaseObjectObservable import throwing an error

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

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

1 Like

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

and in appmodule.ts

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

2 Likes

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

1 Like

What version of angularfire2 are you using?

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

4 Likes