Angular series----Angularjs Getting Started Tutorial 02: Static Template (reprint)

Source: Internet
Author: User

To illustrate how ANGULARJS enhances standard HTML, we will first create a static HTML page template and then convert the static HTML page template to a dynamically displayed Angularjs template.

In this step, we add the basic information of two phones to the HTML page and use the following 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 app to see the effect.

App/index.html

  <ul> <li> <span>nexus s</span> <p> Fast just got faster with Nexus S. </p>< Span class= "PLN" > </li> <li> span class= "tag" ><span>motorola xoom™with wi-fi</span>  <p> The next, next Generation tablet. </p> </li></UL>              
Practice

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

<p>Total number of phones: 2</p>
Summarize

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

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.