Skip to content

Commit

Permalink
Merge branch 'master' of github.com:yyx990803/vuefire
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 11, 2016
2 parents 46adf77 + 8389d2a commit c692c4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ vm.$bindAsArray('items', myFirebaseRef.child('items').limitToLast(25))

### Array Bindings

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"`.
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"`.

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:
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:

``` json
{
Expand Down Expand Up @@ -115,7 +115,7 @@ The resulting bound array stored in `vm.items` will be:
},
{
".key": "-JtjlAXoQ3VAoNiJcka9",
"_value": "foo"
".value": "foo"
}
]
```
Expand Down

0 comments on commit c692c4a

Please sign in to comment.