Data Binding in JavaScript Libraries
Table of Contents
1. Background
2. Data Binding
2.1. Observable Wrapper
2.2. Pub/Sub
jQuery.trigger()
2.3. Backbone
render: function() { }
3. Two-Way Data Binding
3.1. HTML decorators
corrected
original URL now returns 404 (curl -I, 2026-10-08); an archived copy confirms the post and its HTML-decorator technique existed as described.
http://www.lucaongaro.eu/blog/2012/12/02/easy-two-way-data-binding-in-javascript/ (dead; archived: https://web.archive.org/web/20141231215853/http://lucaongaro.eu/blog/2012/12/02/easy-two-way-data-binding-in-javascript/)
3.5. Object.observe
reproduced
ran on Node v24.14.1 (2026-10-08): "TypeError: Object.observe is not a function". The TC39 proposal was withdrawn in 2015 and removed from V8 in 2016; it never shipped as a standard.
Object.observe(model, function(changes) { })
3.6. Ember
https://guides.emberjs.com/v1.10.0/object-model/bindings/
- Ember.Object.create
- Ember.View.extend
3.7. Angular
4. Related
- Google Polymer Web Components – the binding model that came after
- Reactive UI – the virtual DOM, which replaced observable wrappers
- JavaScript Style and jQuery Best Practices – the jQuery-era conventions