angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Cannot retrieve data from firebase

Open funnytao opened this issue 10 years ago • 1 comments

Hi,

I tried to follow the instructions but I failed.

When I tried to log value from firebase like this: af.database.object('shared/1').subscribe(item => console.log(item)); it worked.

But if I would like to do something like this: console.log(af.database.object('shared/1')); I got something like this: FirebaseObjectObservable {_isScalar: false, _ref: U}

Can anyone please tell me what I have done wrong? Thank you.

Tao

funnytao avatar Jun 30 '16 23:06 funnytao

My fault. Should add the async pipe.

funnytao avatar Jul 01 '16 00:07 funnytao