1 menjawab

Jawaban Terbaik

@Doug Stevenson terima kasih! Inilah yang dibutuhkan:

const firebasePromises = [
        database.ref(`users/${userAccount}/installationDate`).once('value'),
        database.ref(`users/${userAccount}/lastUsed`).once('value'),
        ];

        Promise.all(firebasePromises).then(snap => {
            installationDateHTML.innerText = snap[0].val();
            lastUsedDateHTML.innerText     = snap[1].val();

        })
0
Oleg Gulevskyy 26 Maret 2020, 12:06