CLOSE FULL VIEW
The Best of Both Worlds, CANjs
Recorded at:
Community comments
two-way live binding between model and form elements
by
Frederic Daoud
Posted
two-way live binding between model and form elements
by
Frederic Daoud
Great presentation! I love CanJS.
It's worth noting that as of version 1.0.7, the statement made around the 21:18 mark is incorrect. The statement is that you can set up two-way live binding between a model and a form element with a line of code such as:
Updating the "coffee" model will update the form input, but typing into the form input will not automatically update the model.
Nevertheless, thank you for CanJS, it is an awesome JavaScript library.
It's worth noting that as of version 1.0.7, the statement made around the 21:18 mark is incorrect. The statement is that you can set up two-way live binding between a model and a form element with a line of code such as:
<input type='text' value='<%= coffee.attr("roaster") %>'/>
Updating the "coffee" model will update the form input, but typing into the form input will not automatically update the model.
Nevertheless, thank you for CanJS, it is an awesome JavaScript library.




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think