Beginning AngularJS

(WallPaper) #1

Chapter 8 ■ Organizing Views


We have declared ngView as an attribute on a div element; consequently, this div element is where our content
is going to be injected. Let’s examine the four view templates that contain this content. These are shown in Listing 8-4,
Listing 8-5, Listing 8-6, and Listing 8-7.


Listing 8-4. The HomePage, home.html



Home Page


{{ message }}





Listing 8-5. The About Page, about.html



About Page


{{ message }}





Figure 8-2. Demo web site home page

Free download pdf