From b935afe59f0ffa9572c06cc1f5b59fe8102ee4b0 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 19 Sep 2016 11:14:19 -0400 Subject: [PATCH] update firebase example to use 3.x --- examples/firebase/app.js | 11 +++++++++-- examples/firebase/index.html | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/examples/firebase/app.js b/examples/firebase/app.js index 50c867546..be329031e 100644 --- a/examples/firebase/app.js +++ b/examples/firebase/app.js @@ -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({ diff --git a/examples/firebase/index.html b/examples/firebase/index.html index 08a13f27f..e8c54bd5a 100644 --- a/examples/firebase/index.html +++ b/examples/firebase/index.html @@ -7,9 +7,9 @@ - + - +