Skip to content

Commit 62bc52d

Browse files
authored
Update README.md
1 parent 7c3b835 commit 62bc52d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ Alternatively, you can also manually bind to a Firebase ref with the `$bindAsObj
8080
``` js
8181
vm.$bindAsObject('user', myFirebaseRef.child('user'))
8282
vm.$bindAsArray('items', myFirebaseRef.child('items').limitToLast(25))
83+
84+
// References are unbinded when the component is destroyed but you can manually unbind a reference
85+
// if needed
86+
vm.$unbind('items')
8387
```
8488

8589
To save user-input to your Firebase database, simply push the data onto `this.$firebaseRefs.items` (instead of `this.items`) within a Vue method to automatically sync with Firebase.

0 commit comments

Comments
 (0)