gdg-tangier / vue-firestore

:cloud: Cloud Firestore binding in realtime with Vuejs
MIT License
235 stars 28 forks source link

Pre-process before binding data #29

Closed satkamar closed 5 years ago

satkamar commented 6 years ago

firestore() { return { // Collection radioList: db.collection("radio") .where("start", ">=", startDay) .where("start", "<=", endDay) .where("status", "==", "confirmed") .orderBy("start", "asc") } }

Here query will return an array. Before rendering, needs to be preprocessed. How to pass the startDay and endDay value dynamically from function params.

ClickerMonkey commented 6 years ago

Try https://github.com/ClickerMonkey/vue-fiery