Skip to content

Commit c692c4a

Browse files
committed
Merge branch 'master' of github.com:yyx990803/vuefire
2 parents 46adf77 + 8389d2a commit c692c4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ vm.$bindAsArray('items', myFirebaseRef.child('items').limitToLast(25))
8383

8484
### Array Bindings
8585

86-
Each record in the bound array will contain a `_key` property which specifies the key where the record is stored. So if you have data at `/items/-Jtjl482BaXBCI7brMT8/`, the record for that data will have a `_key` of `"-Jtjl482BaXBCI7brMT8"`.
86+
Each record in the bound array will contain a `.key` property which specifies the key where the record is stored. So if you have data at `/items/-Jtjl482BaXBCI7brMT8/`, the record for that data will have a `.key` of `"-Jtjl482BaXBCI7brMT8"`.
8787

88-
If an individual record's value in the database is a primitive (boolean, string, or number), the value will be stored in the `_value` property. If the individual record's value is an object, each of the object's properties will be stored as properties of the bound record. As an example, let's assume the `/items/` node you bind to contains the following data:
88+
If an individual record's value in the database is a primitive (boolean, string, or number), the value will be stored in the `.value` property. If the individual record's value is an object, each of the object's properties will be stored as properties of the bound record. As an example, let's assume the `/items/` node you bind to contains the following data:
8989

9090
``` json
9191
{
@@ -115,7 +115,7 @@ The resulting bound array stored in `vm.items` will be:
115115
},
116116
{
117117
".key": "-JtjlAXoQ3VAoNiJcka9",
118-
"_value": "foo"
118+
".value": "foo"
119119
}
120120
]
121121
```

0 commit comments

Comments
 (0)