Skip to content

Commit

Permalink
docs(readme): function syntax gets executed once
Browse files Browse the repository at this point in the history
Closes #117
  • Loading branch information
posva committed Aug 14, 2017
1 parent bd3100f commit 57b5568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ var vm = new Vue({
el: '#demo',
firebase: function () {
return {
anArray: db.ref('url/to/my/collection')
anArray: db.ref('url/to/my/collection/')
}
}
})
```

⚠️: 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`

**About the cancelCallback**:

> 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.
Expand Down

0 comments on commit 57b5568

Please sign in to comment.