Skip to content

Commit f4bee37

Browse files
committed
Add note about cancellCallback
Closes #53
1 parent d65a4e6 commit f4bee37

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ var vm = new Vue({
5757
})
5858
```
5959

60+
**About the cancelCallback**: This callback is actually an error handler that
61+
is called if the read/write doesn't succeed. You can of course also use it with
62+
`asObject: false` and apply it to arrays. The firebase doc stateees:
63+
64+
> We can pass an optional cancel callback to our event subscription that will
65+
> be called if the read is ever cancelled. A read would be cancelled if the app
66+
> client doesn't have permission to read from that database reference. This
67+
> callback will be passed an error object indicating why the failure occurrede.
68+
6069
``` html
6170
<div id="demo">
6271
<pre>{{ anObject | json }}</pre>

0 commit comments

Comments
 (0)