On Thursday, January 5, 2017 at 2:34:16 PM UTC+1, tim garver wrote: > > Gotcha, > i was really more concerned with the auto refresh of the remote data. Then > the client to client would be automatic > > That is easily achieveable. It's just not part of the Angular as a framework. See, if server has data changes, then *it* is in charge of telling clients about the changes, not the client. So whatever you have on the backend should tell your client somehow about the data changes.
But framework is ready for it. E.g. in Angular2, you can create an angular service that connects via websockets as you mentioned, or listens for SSE (server-side events) which is relatively standardized, with plenty of examples around the web on how to do this. So the server pings your angular service, which in turn updates its data, which angular then reflects in your views, however you decided to show this update. And this is exactly what Firebase does - it pretends it's your server and then tells clients when to update local data. -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
