Angularjs a static template for the introductory tutorial _angularjs

Source: Internet
Author: User

To illustrate how ANGULARJS enhances standard HTML, we will first create a static HTML page template and then convert this static HTML page template into a angularjs template that can be dynamically displayed.

In this step, we add the basic information of two phones to the HTML page, and use the command to reset the working directory to step 1.

Git checkout-f step-1

Please edit the app/index.html file, add the following code to the Index.html file, and then run the application to view the effect.

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 > Next
    , Next Generation tablet.
    </p>
  </li>
</ul>

Practice

Try adding multiple static HTML code to index.html, for example:

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

Summarize

This step adds a static HTML phone list to the application, now let's go to step 2 to learn how to use ANGULARJS to dynamically generate the same list.

The above is angularjs static template of the data collation, follow-up continue to supplement the relevant information, thank you for your support of this site!

Related Article

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.