Open staab opened 10 years ago
"listening for updates on the models" What is the mechanism for this? Is this mechanism related to http://backbonejs.org ? I don't understand what this looks like; can you (or anyone else out there) point me to where I might get a little more information? Thanks.
Yeah, I honestly don't know the mechanism either. I've used knockout.js http://knockoutjs.com/ a little bit, and there are also Ember, Angular, Backbone, and lots of others.
I think the basic concept is this:
This differs from the jquery paradigm in that the html is very much a consumer of a data api defined in javascript. The thing is, html can't do much on its own, so event bindings are still the mechanism for making it happen. This lends to code re-use, since you're defining data structures and applying them to disparate ui elements, rather than defining disparate ui elements and accomodating your data structures to them.
On Sat, Oct 25, 2014 at 9:07 AM, jpurdy notifications@github.com wrote:
"listening for updates on the models" What is the mechanism for this? Is this mechanism related to http://backbonejs.org ? I don't understand what this looks like; can you (or anyone else out there) point me to where I might get a little more information? Thanks.
— Reply to this email directly or view it on GitHub https://github.com/staab/js-allonge/issues/8#issuecomment-60487528.
Not sure how to go about this, but we'll probably want something pretty declaratively client-side model driven, listening for updates on the models and updating the DOM in response. When updating the DOM, it seems more correct from what I've seen to have various pre-defined classes that HTML can include, rather than the javascript going out and finding html based on certain criteria.