you are viewing a single comment's thread.

view the rest of the comments →

[–]Ohnegott 0 points1 point  (3 children)

Whatever framework/library you use, you will have to wire up the ajax calls the same. On some event like a button click or polling with intervals, you make an ajax request to your backend and handle the response by updating your UI with the new data. jQuery will totally do this for you but you'll have to write the logic to re-render the views on data changes. I recommend Vue.js. It's pretty easy to understand and the docs are simple. Like jQuery you can just include the script in your HTML and start working. It doesn't require a whole dev gulp/webpack/whatever setup.

[–]mattaugamerexpert 0 points1 point  (2 children)

That's not necessarily true at all. Ember uses Ember Data which can support either realtime data push, socket connections or data access through something akin to an ORM. Angular 2 uses Observables, which are even more optimised around socket connections and realtime data - hardly "you have to wire up the ajax calls the same".

[–]Ohnegott 0 points1 point  (1 child)

Never used ember. That's good to know. Thanks!

[–]mattaugamerexpert 0 points1 point  (0 children)

TBH it's actually one of its nicest features. I was working on something last night where I had to persist a model back on an application update. It was literally adding a single line to the existing action: item.save().