Skip to Main Content
Pro JavaScript for Web Apps
book

Pro JavaScript for Web Apps

by Adam Freeman
June 2012
Intermediate to advanced content levelIntermediate to advanced
278 pages
7h 37m
English
Apress
Content preview from Pro JavaScript for Web Apps

C H A P T E R  3

Adding a View Model

If you have done any serious desktop or server-side development, you will have encountered either the Model-View-Controller (MVC) design pattern or its derivative Model-View-View-Model (MVVM). I am not going to describe either pattern in any detail, other than to say that the core concept in both is separating the data, operations, and presentation of an application into separate components.

There is a lot of benefit in applying the same basic principles to a web application. I am not going to get bogged down in the design patterns and terminology. Instead, I am going to focus on demonstrating the process for structuring a web app and explaining the benefits that are gained from doing so.

Resetting the Example ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro JavaScript Development: Coding, Capabilities, and Tooling

Pro JavaScript Development: Coding, Capabilities, and Tooling

Den Odell
JavaScript: Best Practice

JavaScript: Best Practice

James Kolce, Moritz Kroger, Ivan Curic, Samier Saeed, Jeff Mott, M. David Green, Craig Buckler

Publisher Resources

ISBN: 9781430244615Purchase book