Skip to content

Commit

Permalink
update firebase example to use 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 19, 2016
1 parent 72a1527 commit b935afe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions examples/firebase/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
var emailRE = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/

// Firebase ref
var usersRef = new Firebase('https://vue-demo.firebaseIO.com/users')
// Setup Firebase
var config = {
apiKey: "AIzaSyAi_yuJciPXLFr_PYPeU3eTvtXf8jbJ8zw",
authDomain: "vue-demo-537e6.firebaseapp.com",
databaseURL: "https://vue-demo-537e6.firebaseio.com"
}
firebase.initializeApp(config)

var usersRef = firebase.database().ref('users')

// create Vue app
var app = new Vue({
Expand Down
4 changes: 2 additions & 2 deletions examples/firebase/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<!-- Vue -->
<script src="../../dist/vue.js"></script>
<!-- Firebase -->
<script src="https://cdn.firebase.com/js/client/2.4.2/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.4.0/firebase.js"></script>
<!-- VueFire -->
<script src="https://cdn.jsdelivr.net/vuefire/1.2.0/vuefire.min.js"></script>
<script src="https://unpkg.com/vuefire@1.3.0"></script>
</head>
<body>
<div id="app">
Expand Down

0 comments on commit b935afe

Please sign in to comment.