Skip to content

Commit

Permalink
Update typings installation instructions. (angular#317)
Browse files Browse the repository at this point in the history
* Update typings installation instructions.

* Distinguish between flags for older version of typings (still used by angular-cli).
  • Loading branch information
filoxo authored and davideast committed Jul 15, 2016
1 parent 33d6471 commit d7c82eb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/1-install-and-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ Now that you have a new project setup, install AngularFire 2 and Firebase from n

### 3. Include Firebase SDK typings

In your `tsconfig.json` file include the following line in your `"files"` array:

```json
"files": [
"node_modules/angularfire2/firebase3.d.ts"
]
```bash
typings install file:node_modules/angularfire2/firebase3.d.ts --save --global && typings install
```

This is a temporary step until the Firebase typings are published to npm.
This saves the typings reference into `typings.json` and installs it.

Note: for typings < 1, use the `--ambient` flag instead of `--global`.

Unless you're targeting ES6 output in tsconfig.json, you'll also need to install
typings for the global Promise constructor. Run this command:
Expand Down

0 comments on commit d7c82eb

Please sign in to comment.