s/currentUser/user in context object example in README.md.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -16,7 +16,7 @@ The `bind` function takes two arguments; the parent DOM element that you wish to | ... | @@ -16,7 +16,7 @@ The `bind` function takes two arguments; the parent DOM element that you wish to |
16 | 16 | ||
17 | Context objects are referenced in your data-binding declarations using dot-notation: | 17 | Context objects are referenced in your data-binding declarations using dot-notation: |
18 | 18 | ||
19 | <input type="text" data-value="currentUser.email"> | 19 | <input type="text" data-value="user.email"> |
20 | <input type="checkbox" data-enabled="item.active"> | 20 | <input type="checkbox" data-enabled="item.active"> |
21 | 21 | ||
22 | Configuring Rivets.js is required before anything can be bound, as binding is dependant on having an adapter defined. Here's a sample configuration for using Rivets.js with Backbone.js. | 22 | Configuring Rivets.js is required before anything can be bound, as binding is dependant on having an adapter defined. Here's a sample configuration for using Rivets.js with Backbone.js. | ... | ... |
-
Please register or sign in to post a comment