Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- methods: {
- fetchNavbarLinks() {
- console.log("querying firestore...");
- db.collection("components/navbar/links")
- .orderBy("displayOrder")
- .get()
- .then(snapshot => {
- snapshot.docs.forEach(doc => {
- if (doc.exists) {
- console.log(doc.data());
- this.navbarLinks.push(doc.data());
- } else if (error) {
- console.log("Error fetching document!", error.message);
- }
- });
- });
- }
- }
Add Comment
Please, Sign In to add comment