We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62bc52d + fd34968 commit f4559ceCopy full SHA for f4559ce
README.md
@@ -155,6 +155,20 @@ The resulting bound array stored in `vm.items` will be:
155
]
156
```
157
158
+To delete or update an item you can use the `.key` property of a given object:
159
+
160
+``` js
161
+ // Vue instance methods
162
+ deleteItem: function (item) {
163
+ this.$firebaseRefs.items.child(item['.key']).remove()
164
+ },
165
+ updateItem: function (item) {
166
+ this.$firebaseRefs.items.child(item['.key']).set(item)
167
+ }
168
+```
169
170
+You can check the full example at [examples/todo-app](examples/todo-app/index.html).
171
172
## Contributing
173
174
Clone the repo, then:
0 commit comments