Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions modules/angular2/docs/core/01_templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ of the templates occures. One such example is foreach.
</form>
<ul>
<template foreach #person [in]="people" #i="index">
<li>{{i}}. {{item}}<li>
<li>{{i}}. {{person}}<li>
</template>
</ul>
```
Expand All @@ -394,7 +394,7 @@ syntax is prefferable.

```
<ul>
<li template="foreach; #person; in=people; #i=index;">{{i}}. {{item}}<li>
<li template="foreach; #person; in=people; #i=index;">{{i}}. {{person}}<li>
</ul>
```

Expand All @@ -404,7 +404,7 @@ which allows us to further shorten the text.

```
<ul>
<li template="foreach #person in people #i=index">{{i}}. {{item}}<li>
<li template="foreach #person in people #i=index">{{i}}. {{person}}<li>
</ul>
```

Expand All @@ -413,7 +413,7 @@ microsyntax for `foreach`.

```
<ul>
<li template="foreach: var person in people; var i=index">{{i}}. {{item}}<li>
<li template="foreach: var person in people; var i=index">{{i}}. {{person}}<li>
</ul>
```

Expand Down Expand Up @@ -587,4 +587,4 @@ langugage, binding expressions behave differently in following ways:

## Further Reading

* [Template Syntax Constraints and Reasoning](https://docs.google.com/document/d/1HHy_zPLGqJj0bHMiWPzPCxn1pO5GlOYwmv-qGgl4f_s)
* [Template Syntax Constraints and Reasoning](https://docs.google.com/document/d/1HHy_zPLGqJj0bHMiWPzPCxn1pO5GlOYwmv-qGgl4f_s)