Skip to content

Commit 9c3e6df

Browse files
committed
update readme
1 parent 20b4bd5 commit 9c3e6df

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,29 @@
44

55
1. If included as global `<script>`: will install automatically if global `Vue` is present.
66

7+
``` html
8+
<head>
9+
<!-- Vue -->
10+
<script src="https://cdn.jsdelivr.net/vue/latest/vue.js"></script>
11+
<!-- Firebase -->
12+
<script src="https://cdn.firebase.com/js/client/2.4.2/firebase.js"></script>
13+
<!-- VueFire -->
14+
<script src="https://cdn.firebase.com/libs/vuefire/0.1.0/vuefire.min.js"></script>
15+
</head>
16+
```
17+
718
2. In module environments, e.g CommonJS:
819

20+
``` bash
21+
npm install vue firebase vuefire --save
22+
```
23+
924
``` js
1025
var Vue = require('vue')
1126
var VueFire = require('vuefire')
27+
var Firebase = require('firebase')
28+
29+
// explicit installation required in module environments
1230
Vue.use(VueFire)
1331
```
1432

0 commit comments

Comments
 (0)