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 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.