Building a Single Page Web Application with Knockout.js Tutorial: Understanding MVVM | packtpub.com

preview_player
Показать описание

Most web developers are familiar with the Model View Controller (MVC) pattern. The MVVM pattern serves a similar purpose but is more suitable for two-way data binding. MVC is typically concerned with how to output the HTML, not how to interact back and forth with the DOM.
• The Model is the actual storage of the data that is typically stored on the server side (a possible exception is the local storage)
• The View is the markup that describes the layout and behavior of the visual page
• The ViewModel is the glue that ties the two together. Unlike a controller, which only passes the data to the view, a ViewModel serves as a persistent holder of the state represented by the markup

-----------------------------------------------------------------------------------------------

For the latest in Web Development video tutorials, please visit:

Рекомендации по теме
join shbcf.ru