Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

How to know whether particular record is in local or updated in firebase? #83

Open
nshiva opened this issue Dec 18, 2017 · 1 comment
Open

Comments

@nshiva
Copy link

nshiva commented Dec 18, 2017

I am using angularfire2-offline in my application. I am storing array of students objects.
some thing similar to

students: AfoListObservable<any[]>;
students = afoDatabase.list('/students');

On the UI,
<button ion-item *ngFor="let patient of studnets | async" >{{student.name}} - {{student.age}}</button>
I would like to display some icon on this button based on whether particular student object is updated in firebase or not?

Could you help me in implementing this?

@vixson
Copy link

vixson commented Sep 26, 2018

if there is a change on that student node the observable would fire-up asynchronously and both the GUI and the local-storage would be updated on that change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants