[Vuejs]-Populate Firebase Data in Vue Table

0👍

Assuming that you are using data.users instead of data now

created () {
     userRef.on('child_added', snapshot => {

       this.data.users.push({ ...snapshot.val()})
     })
   }

so on new child addition the table will update automatically.

👤Atul

Leave a comment