daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. methods: {
  2. fetchNavbarLinks() {
  3.   console.log("querying firestore...");
  4.   db.collection("components/navbar/links")
  5.     .orderBy("displayOrder")
  6.     .get()
  7.     .then(snapshot => {
  8.       snapshot.docs.forEach(doc => {
  9.         if (doc.exists) {
  10.           console.log(doc.data());
  11.           this.navbarLinks.push(doc.data());
  12.         } else if (error) {
  13.           console.log("Error fetching document!", error.message);
  14.         }
  15.       });
  16.     });
  17.     }
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top