-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Let's create a purely static 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. | ||
|
||
Add this template HTML to `app.html`: | ||
|
||
{{{diff_step 2.1}}} | ||
|
||
Now, let's go to the [next step](/tutorials/angular2/dynamic-template) and learn how to dynamically generate the same list using Angular 2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[{]: <region> (header) | ||
# Step 2: Static Template | ||
[}]: # | ||
[{]: <region> (body) | ||
Let's create a purely static 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. | ||
|
||
Add this template HTML to `app.html`: | ||
|
||
[{]: <helper> (diff_step 2.1) | ||
#### Step 2.1: Add static HTML to the main component view | ||
|
||
##### Changed client/imports/app/app.component.html | ||
```diff | ||
@@ -1 +1,14 @@ | ||
-┊ 1┊ ┊Hello World!🚫↵ | ||
+┊ ┊ 1┊<ul> | ||
+┊ ┊ 2┊ <li> | ||
+┊ ┊ 3┊ <span>Dubstep-Free Zone</span> | ||
+┊ ┊ 4┊ <p> | ||
+┊ ┊ 5┊ Can we please just for an evening not listen to dubstep. | ||
+┊ ┊ 6┊ </p> | ||
+┊ ┊ 7┊ </li> | ||
+┊ ┊ 8┊ <li> | ||
+┊ ┊ 9┊ <span>All dubstep all the time</span> | ||
+┊ ┊10┊ <p> | ||
+┊ ┊11┊ Get it on! | ||
+┊ ┊12┊ </p> | ||
+┊ ┊13┊ </li> | ||
+┊ ┊14┊</ul>🚫↵ | ||
``` | ||
[}]: # | ||
|
||
Now, let's go to the [next step](/tutorials/angular2/dynamic-template) and learn how to dynamically generate the same list using Angular 2. | ||
|
||
[}]: # | ||
[{]: <region> (footer) | ||
[{]: <helper> (nav_step) | ||
| [< Previous Step](step1.md) | [Next Step >](step3.md) | | ||
|:--------------------------------|--------------------------------:| | ||
[}]: # | ||
[}]: # |