[Angular Tutorial] 1-static Template

Source: Internet
Author: User

To illustrate how angular expands the standard HTML, you will create a purely static HTML page and see how we can translate these HTML code into templates that angular dynamically display.

In this step you will add the basic information of two phones in an HTML page.

• This page now contains a list of basic information for two phones.

The most important differences are listed below and you can click here to view all the differences on GitHub.

app/index.html:
<ul>  <li>    <span>nexus s</span>    <p>      Fast just got faster with Nexus S.    </p>  </li>  <li>    <span>motorola xoom™with wi-fi</span>    <p>      the next, next Generation tablet.    </p>  </li></ul>

Experiment

Try adding something to a static HTML page, such as:

<p>total Number of phones:2</p>

Summarize

You have added static HTML in your app to show the list, so let's go to the next step to see how to dynamically generate the same list using ANGULARJS.

[Angular Tutorial] 1-static Template

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.