Improve this doc

In order to illustrate how Angular enhances standard HTML, you will create a purely static HTML page and then examine how we can turn this HTML code into a template that Angular will use to dynamically display the same result with any set of data.

In this step you will add some basic information about two cell phones to an HTML page.

The page now contains a list with information about two phones.

The most important changes are listed below. You can see the full diff on GitHub:

app/index.html:

  1. <ul>
  2. <li>
  3. <span>Nexus S</span>
  4. <p>
  5. Fast just got faster with Nexus S.
  6. </p>
  7. </li>
  8. <li>
  9. <span>Motorola XOOM™ with Wi-Fi</span>
  10. <p>
  11. The Next, Next Generation tablet.
  12. </p>
  13. </li>
  14. </ul>

Experiments

  • Try adding more static HTML to index.html. For example:
  1. <p>Total number of phones: 2</p>

Summary

This addition to your app uses static HTML to display the list. Now, let's go to step 2 to learn how to use AngularJS to dynamically generate the same list.