Skip to content

Commit 52b0626

Browse files
committed
Update 01_templates.md
1 parent 6d23d00 commit 52b0626

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

modules/angular2/docs/core/01_templates.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ detail in following sections.
3333
<tr>
3434
<th>Text Interpolation</th>
3535
<td>
36-
`<div>{{exp}}</div>`
36+
```html
37+
<div>{{exp}}</div>
38+
```
3739

3840
Example:
39-
```
41+
```html
4042
<div>
4143
Hello {{name}}!
4244
<br>
@@ -48,7 +50,7 @@ Example:
4850
`<div [text|index]=exp>`
4951

5052
Example:
51-
```
53+
```html
5254
<div
5355
[text|0]=" 'Hello' + stringify(name) + '!' "
5456
[text|2]=" 'Goodbye' + stringify(name) + '!' ">
@@ -60,18 +62,26 @@ Example:
6062
<tr>
6163
<th>Property Interpolation</th>
6264
<td>
63-
`<div name="{{exp}}">`
65+
```html
66+
<div name="{{exp}}">
67+
```
6468

6569
Example:
6670

67-
`<div class="{{selected}}">`
71+
```html
72+
<div class="{{selected}}">`
73+
```
6874
</td>
6975
<td>
70-
`<div [name]="stringify(exp)">`
76+
```html
77+
<div [name]="stringify(exp)">
78+
```
7179

7280
Example:
7381

74-
`<div [class]="stringify(selected)">`
82+
```html
83+
<div [class]="stringify(selected)">
84+
```
7585
</td>
7686
</tr>
7787
<tr>

0 commit comments

Comments
 (0)