Skip to content

Commit d7c82eb

Browse files
filoxodavideast
authored andcommitted
Update typings installation instructions. (angular#317)
* Update typings installation instructions. * Distinguish between flags for older version of typings (still used by angular-cli).
1 parent 33d6471 commit d7c82eb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/1-install-and-setup.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ Now that you have a new project setup, install AngularFire 2 and Firebase from n
3030

3131
### 3. Include Firebase SDK typings
3232

33-
In your `tsconfig.json` file include the following line in your `"files"` array:
34-
35-
```json
36-
"files": [
37-
"node_modules/angularfire2/firebase3.d.ts"
38-
]
33+
```bash
34+
typings install file:node_modules/angularfire2/firebase3.d.ts --save --global && typings install
3935
```
4036

41-
This is a temporary step until the Firebase typings are published to npm.
37+
This saves the typings reference into `typings.json` and installs it.
38+
39+
Note: for typings < 1, use the `--ambient` flag instead of `--global`.
4240

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

0 commit comments

Comments
 (0)