Skip to content

Commit 1aedf14

Browse files
rwillmerdavideast
authored andcommitted
Add prerequisites for clean install. (angular#262)
* Add prerequisites for clean install. Fixes angular#260 * spelling fixes
1 parent f38e9d7 commit 1aedf14

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

docs/1-install-and-setup.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
55
**The setups below use the [Angular CLI](https://github.com/angular/angular-cli).**
66

7+
### 0. Prerequisites
8+
9+
```bash
10+
npm install -g angular-cli
11+
npm install -g typings
12+
```
13+
714
### 1. Create a new project
815

916
```bash

docs/2-retrieving-data-as-objects.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> AngularFire2 synchronizes data as objects using the `FirebaseObjectObservable`.
44
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.
66

77
## Injecting the AngularFire service
88

@@ -29,7 +29,7 @@ export class AppComponent {
2929

3030
## Create an object binding
3131

32-
Data is retreived through the `af.database` service.
32+
Data is retrieved through the `af.database` service.
3333

3434
There are three ways to create an object binding:
3535

@@ -163,15 +163,15 @@ export class RcTestAppComponent {
163163
```
164164

165165
## 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.
167167

168168
| property | |
169169
| ---------|--------------------|
170170
| $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()`.|
171171
| $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.|
172172

173173

174-
## Retreiving the snapshot
174+
## Retrieving the snapshot
175175
AngularFire2 unwraps the Firebase DataSnapshot by default, but you can get the data as the original snapshot by specifying the `preserveSnapshot` option.
176176

177177
```ts

0 commit comments

Comments
 (0)