You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/2-retrieving-data-as-objects.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
> AngularFire2 synchronizes data as objects using the `FirebaseObjectObservable`.
4
4
The `FirebaseObjectObservable` is not created by itself, but through the `AngularFire.database` service.
5
-
The guide below demonstrates how to retreive, save, and remove data as objects.
5
+
The guide below demonstrates how to retrieve, save, and remove data as objects.
6
6
7
7
## Injecting the AngularFire service
8
8
@@ -29,7 +29,7 @@ export class AppComponent {
29
29
30
30
## Create an object binding
31
31
32
-
Data is retreived through the `af.database` service.
32
+
Data is retrieved through the `af.database` service.
33
33
34
34
There are three ways to create an object binding:
35
35
@@ -163,15 +163,15 @@ export class RcTestAppComponent {
163
163
```
164
164
165
165
## Meta-fields on the object
166
-
Data retreived from the object binding contains special properties retreived from the unwrapped Firebase DataSnapshot.
166
+
Data retrieved from the object binding contains special properties retrieved from the unwrapped Firebase DataSnapshot.
167
167
168
168
| property ||
169
169
| ---------|--------------------|
170
170
| $key | The key for each record. This is equivalent to each record's path in our database as it would be returned by `ref.key()`.|
171
171
| $value | If the data for this child node is a primitive (number, string, or boolean), then the record itself will still be an object. The primitive value will be stored under `$value` and can be changed and saved like any other field.|
172
172
173
173
174
-
## Retreiving the snapshot
174
+
## Retrieving the snapshot
175
175
AngularFire2 unwraps the Firebase DataSnapshot by default, but you can get the data as the original snapshot by specifying the `preserveSnapshot` option.
0 commit comments