mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Document @index in spacebars' README
This commit is contained in:
@@ -365,6 +365,9 @@ for example), but it may also be a plain JavaScript array, `null`, or
|
||||
An "else" section may be provided, which is used (with no new data
|
||||
context) if there are zero items in the sequence at any time.
|
||||
|
||||
You can use a special variable `@index` in the body of `#each` to get the
|
||||
0-based index of the currently rendered value in the sequence.
|
||||
|
||||
### Reactivity Model for Each
|
||||
|
||||
When the argument to `#each` changes, the DOM is always updated to reflect the
|
||||
|
||||
Reference in New Issue
Block a user