Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/install-and-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ The Angular CLI's `new` command will set up the latest Angular build in a new pr

### 2. Install AngularFire and Firebase

Now that you have a new project setup, install AngularFire and Firebase from npm.

```bash
ng add @angular/fire@next
ng add @angular/fire
npm install firebase
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to save this in application
npm install firebase --save

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--save is default since npm 5.0

```

Now that you have a new project setup, install AngularFire and Firebase from npm.

### 3. Add Firebase config to environments variable

Open `/src/environments/environment.ts` and add your Firebase configuration. You can find your project configuration in [the Firebase Console](https://console.firebase.google.com). From the project overview page, click **Add Firebase to your web app**.
Expand Down