d8a1fba5 by Michael Richards

Update README with new dependency declaration syntax notes.

1 parent 3a84f8b6
......@@ -153,9 +153,11 @@ Just use `model:property` instead of `model.property` inside your binding declar
Computed properties are functions that get re-evaluated when one or more dependent properties change. Declaring computed properties in Rivets.js is simple, just separate the function from it's dependencies with a *<*. The following `data-text` binding will get re-evaluated with `event.duration()` when either the event's `start` or `end` attribute changes.
```html
<span data-text="event:duration < start end"></span>
<span data-text="event:duration < .start .end"></span>
```
The prepended `.` is a shorthand syntax for specifying dependencies that are the same object as the target object, so the above declaration is effectively the same as `event:duration < event.start event.end`.
#### Iteration Binding
Use the `data-each-[item]` binding to have Rivets.js automatically loop over items in an array and append bound instances of that element. Within that element you can bind to the iterated item as well as any contexts that are available in the parent view.
......