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
Verify you have the correct version installed by running `ng -v` and ensuring that you see `angular-cli: 1.x.x-beta.x-webpack.x`. If not, you may need to do the following:
21
+
22
+
```bash
23
+
# if you have the wrong cli version only
24
+
npm uninstall -g angular-cli
25
+
26
+
# reinstall clean version
27
+
npm install -g angular-cli@webpack
20
28
```
21
29
30
+
22
31
### 1. Create a new project
23
32
24
33
```bash
@@ -28,24 +37,32 @@ cd <project-name>
28
37
29
38
The Angular CLI's `new` command will set up the latest Angular build in a new project structure.
30
39
31
-
### 2. Install AngularFire 2 and Firebase
40
+
### 2. Test your Setup
41
+
42
+
```bash
43
+
ng serve
44
+
open http://localhost:4200
45
+
```
46
+
47
+
You should see a message that says *App works!*
48
+
49
+
### 3. Install AngularFire 2 and Firebase
32
50
33
51
```bash
34
52
npm install angularfire2 firebase --save
35
53
```
36
54
37
55
Now that you have a new project setup, install AngularFire 2 and Firebase from npm.
38
56
39
-
### 3. Setup @NgModule
57
+
### 4. Setup @NgModule
40
58
41
59
Open `/src/app/app.module.ts`, inject the Firebase providers, and specify your Firebase configuration.
42
60
This can be found in your project at [the Firebase Console](https://console.firebase.google.com):
0 commit comments