angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

is there a watch feature similar to angularfire-1 ?

Open ituhin opened this issue 10 years ago • 3 comments

how to get notified when a firebase object/list (which i am listening to) gets modified ? looking for something similar to $watch() in angularfire-1

Thanks 👍

ituhin avatar Nov 29 '16 22:11 ituhin

Since objects/collections are Observables, you just use Observable.prototype.subscribe().

All issues have to follow the issue template provided. This is critical to keep things streamlined and manageable. Closing this. Feel free to resubmit according to the template; if you do, be sure to include a working, minimal repro of the problem and version info.

katowulf avatar Nov 29 '16 23:11 katowulf

@katowulf thanks 👍

and what is the equivalent of $loaded() feature ? same subscribe() ? then how to differentiate between both cases !

ituhin avatar Nov 30 '16 15:11 ituhin

.first().subscribe().

katowulf avatar Nov 30 '16 15:11 katowulf