With Backbone, you signify your information as Models, which might be created, validated, destroyed, and saved to the server. Every time a UI action causes an attribute of a model to alter, the model triggers a “change” occasion; all of the Views that show the model’s state might be notified of the change, in order that they can reply accordingly, re-rendering themselves with the brand new info. In a completed Backbone app, you do not have to write down the glue code that appears into the DOM to search out a component with a selected id, and replace the HTML manually — when the model modifications, the views merely replace themselves.
When you’re new right here, and are not but fairly certain what Backbone is for, start by looking the list of Backbone-based projects.
Lots of the code examples in this website is executable, as a result of Backbone is included on this web page. Click on the play button to execute them.