Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Create README.md
  • Loading branch information
posva authored Jun 10, 2017
commit d47d5b61d6702dc6adbe480b1576cd4b56e2435f
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ Alternatively, you can also manually bind to a Firebase ref with the `$bindAsObj
``` js
vm.$bindAsObject('user', myFirebaseRef.child('user'))
vm.$bindAsArray('items', myFirebaseRef.child('items').limitToLast(25))
//These instance methods can also take the optional cancelCallback and readyCallback callbacks functions as
//a third and fourth arguments.
//Example of using readyCallback:
vm.$bindAsObject('user', myFirebaseRef.child('user'), null, function () {})
// You can also pass cancelCallback and readyCallback callbacks functions as
// a third and fourth arguments. Any of them can be omitted by passing null
vm.$bindAsObject('user', myFirebaseRef.child('user'), null, () => console.log('Ready fired!'))

// References are unbinded when the component is destroyed but you can manually unbind a reference
// References are unbound when the component is destroyed but you can manually unbind a reference
// if needed
vm.$unbind('items')
```
Expand Down