[Vuejs]-Adding a new child to a real-time Firebase database using Vue

0👍

Change the first two lines of code in newPlant() to:

this.collectionRef = sc;
collectionsRef.child(this.collectionRef['.key']).child("plants").push(this.newPlant);

Leave a comment