Monday, May 20, 2024
5
rated 0 times [  9] [ 4]  / answers: 1 / hits: 26170  / 12 Years ago, tue, april 24, 2012, 12:00:00

There are many JavaScript MVC frameworks right now that work with Handlebars.js offering data binding between the model/controller and the template. Currently I'm implementing Handlebars.js alone (with jQuery) and needing to bind data between my main code and the template so the latter gets updated automatically. Is there a native way to do it in Handlebars or with a plugin?
If there isn't, is there any component of these MVC frameworks that brings this functionality and can be used stand-alone without the full-stack framework?


More From » data-binding

 Answers
44

Take a look at rivets: https://github.com/mikeric/rivets. I use backbone, handlebars, and backbone.modelbinding for two-way updates. Works great.



Backbone.modelbinding (https://github.com/derickbailey/backbone.modelbinding) has been abandoned, but refers to rivets.


[#86009] Monday, April 23, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
antonb

Total Points: 424
Total Questions: 104
Total Answers: 101

Location: Serbia
Member since Tue, Jul 26, 2022
2 Years ago
;