Update 01_templates.md

This commit is contained in:
Matias Niemelä 2015-02-13 12:04:03 -05:00
parent 6d23d00057
commit 52b062621d
1 changed files with 17 additions and 7 deletions

View File

@ -33,10 +33,12 @@ detail in following sections.
<tr> <tr>
<th>Text Interpolation</th> <th>Text Interpolation</th>
<td> <td>
`<div>{{exp}}</div>` ```html
<div>{{exp}}</div>
```
Example: Example:
``` ```html
<div> <div>
Hello {{name}}! Hello {{name}}!
<br> <br>
@ -48,7 +50,7 @@ Example:
`<div [text|index]=exp>` `<div [text|index]=exp>`
Example: Example:
``` ```html
<div <div
[text|0]=" 'Hello' + stringify(name) + '!' " [text|0]=" 'Hello' + stringify(name) + '!' "
[text|2]=" 'Goodbye' + stringify(name) + '!' "> [text|2]=" 'Goodbye' + stringify(name) + '!' ">
@ -60,18 +62,26 @@ Example:
<tr> <tr>
<th>Property Interpolation</th> <th>Property Interpolation</th>
<td> <td>
`<div name="{{exp}}">` ```html
<div name="{{exp}}">
```
Example: Example:
`<div class="{{selected}}">` ```html
<div class="{{selected}}">`
```
</td> </td>
<td> <td>
`<div [name]="stringify(exp)">` ```html
<div [name]="stringify(exp)">
```
Example: Example:
`<div [class]="stringify(selected)">` ```html
<div [class]="stringify(selected)">
```
</td> </td>
</tr> </tr>
<tr> <tr>