w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
AngularJS sync live collection with REST and get live updates

You could use ngChange to watch for user changes. Per the documentation it states ngChange will "Evaluate given expression when user changes the input. The expression is not evaluated when the value change is coming from the model."

I am curious why you're mixing a REST API and a WebSocket API. Why not do it all through WebSockets? It's lighter weight and it seems like it would be less confusing to not mix protocols.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.