forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep_01.html
41 lines (34 loc) · 1.58 KB
/
step_01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<a href='http://github.com/angular/angular.js/edit/master/docs/content/tutorial/step_01.ngdoc' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this doc</a>
<ul doc-tutorial-nav="1"></ul>
<p>In order to illustrate how Angular enhances standard HTML, you will create a purely <em>static</em> 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.</p>
<p>In this step you will add some basic information about two cell phones to an HTML page.</p>
<ul>
<li>The page now contains a list with information about two phones.</li>
</ul>
<div doc-tutorial-reset="1"></div>
<p><strong><code>app/index.html</code>:</strong></p>
<pre><code class="lang-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></code></pre>
<h1 id="experiments">Experiments</h1>
<ul>
<li><p>Try adding more static HTML to <code>index.html</code>. For example:</p>
<pre><code> <p>Total number of phones: 2</p></code></pre>
</li>
</ul>
<h1 id="summary">Summary</h1>
<p>This addition to your app uses static HTML to display the list. Now, let's go to <a href="tutorial/step_02">step 2</a> to learn how to use AngularJS to dynamically generate the same list.</p>
<ul doc-tutorial-nav="1"></ul>