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!