CHAPTER 5

images

The Single-Page Model

When I created the NoteFlash app, I briefly introduced the idea of the single-page navigation model. In this chapter, I will dive into this topic in depth. The basic idea behind the single-page model is that there is one HTML page (often referred to as the master page or main page) that is always displayed to the user and that is responsible for importing other content into its structure as the state of the app changes.

This model provides the basis for allowing the user to navigate your app. You import content into the main page in response to user input and interactions, often replacing content that you have ...

Get Pro Windows 8 Development with HTML5 and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.