3 ms·
Except I think it's more like MVVM in client-side JS code. You don't really have a request dispatcher on the client side (a controller). Instead, you have a Vi
by autarch 15y ago
Except I think it's more like MVVM in client-side JS code.
You don't really have a request dispatcher on the client side (a controller). Instead, you have a View Model, which is basically a representation/manager of the View in JS code (where the View itself is HTML).
- Swizec 15y agoOne could easily argue that Backbone is the controller. Or even the EventEmitter. The View itself is a javascript object with certain behaviours, the HTML is merely the representation of said object ... or conversely, it could be thought of as yet another model, with CSS being the view and what JavaScript considers a View being the controller for the actual rendering. ... it gets complicated.