3 ms·
It's not MVC. There are no controllers, and data in a Backbone app does not flow in a circular fashion. I consider Backbone views describable as presenters, and
by dreamdu5t 12y ago
It's not MVC. There are no controllers, and data in a Backbone app does not flow in a circular fashion. I consider Backbone views describable as presenters, and Backbone describable with the Model-View-Presenter (MVP) pattern.
MVP diagram: http://lostechies.com/derickbailey/files/2011/12/NewImage2.png http://lostechies.com/derickbailey/files/2011/12/NewImage2.p...
Why Backbone is not MVC: http://lostechies.com/derickbailey/2011/12/23/backbone-js-is-not-an-mvc-framework/ http://lostechies.com/derickbailey/2011/12/23/backbone-js-is...
- couchand 12y agoNot sure if your comment is directed towards me or the OP. However, there is in fact a Controller class in this project, so you may be confusing this framework for vanilla Backbone?
- weego 12y agoThere is a Controller class, but in the demo app you can see that both App and ToDoItem extend Controller, which makes be believe that Controller is perhaps not what you'd expect. Having said that, I much prefer Backbones presenter idiom over MVC.
- akrymski 12y agoIt's very much an MVC framework