CHAPTER 2

image

Data and Bindings

In this chapter, I show you how to define and use the data that forms the core of a Windows 8 app. To do this, I will be loosely following the view model pattern, which allows me to cleanly separate the data from the HTML that is used to present it to the user. This makes apps easier to write, test, and maintain.

You may already be familiar with models and view models from design patterns such as Model-View-Controller (MVC) and Model-View-View Controller (MVVC). I am not going to get into the details of these patterns in this book. There is a lot of good information about MVC and MVVC available, starting with Wikipedia, ...

Get Windows 8 Apps Revealed: Using HTML5 and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.