firebase에서 CRUD
#1 파이어베이스에서 데이터 호출 getDataList(){ const self = this; const db = firebase.firestore(); db.collection(self.fbCollection) .get() .then((querySnapshot) => { if (querySnapshot.size === 0) { return } querySnapshot.forEach((doc) => { const _data = doc.data(); // const _user = doc.data().doc(self._data.id); _data.id = doc.id console.log(_data) self.rows.push(_data); }); }) }, #2 특정 ID의 데이터 호출 getData(){..
2022.12.30