Skip to content

Commit 57b5568

Browse files
authored
docs(readme): function syntax gets executed once
Closes #117
1 parent bd3100f commit 57b5568

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ var vm = new Vue({
6666
el: '#demo',
6767
firebase: function () {
6868
return {
69-
anArray: db.ref('url/to/my/collection')
69+
anArray: db.ref('url/to/my/collection/')
7070
}
7171
}
7272
})
7373
```
7474

75+
⚠️: This function will get executed only once. If you want to have automatic rebind (pretty much like a computed property) use a `$watch` and call `$unbind` and then `$bindAsArray`
76+
7577
**About the cancelCallback**:
7678

7779
> An optional callback that will be notified if your event subscription is ever canceled because your client does not have permission to read this data (or it had permission but has now lost it). This callback will be passed an `Error` object indicating why the failure occurred.

0 commit comments

Comments
 (0)