I looked at some Views from Backbone.js, but i don’t see at which point it is declared which model is binded to the view ?
For example here where does the view defines which model is this.model ?
https://github.com/addyosmani/todomvc/blob/gh-pages/dependency-examples/backbone_require/js/views/todos.js
When you pass a
modelproperty in the options argument to the View’s constructor, Backbone automatically sets it asview.model:This feature is documented here.
In the Todolist example the model is set in app.js, line 75.