I using backbone with underscore. I have a button
<%= model.testButtonText %>
This button is rendered in the render function of my view using template.
I am wondering if there is a way to automatically update the button’s text when the model.testButtonText changes?
Or do I have to handle it specifically by binding to the model.testButtonText change and then do some jquery to find the element and update the text that way.
If you don’t want to bind every element to model change event you can use this plugin: http://rivetsjs.com
Natively Backbone doesn’t support ui-bindings.