Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use vue cdn with firestore

var itemsRef = firebase.firestore().collection('items')

var vm = new Vue({
  el: "#app",
  firebase: {
    // can bind to either a direct Firebase reference or a query
    items: itemsRef.limitToLast(25)
  }
});
Source by firebase.googleblog.com #
 
PREVIOUS NEXT
Tagged: #vue #cdn #firestore
ADD COMMENT
Topic
Name
8+5 =