0👍
Change the first two lines of code in newPlant() to:
this.collectionRef = sc;
collectionsRef.child(this.collectionRef['.key']).child("plants").push(this.newPlant);
Source:stackexchange.com
0👍
Change the first two lines of code in newPlant() to:
this.collectionRef = sc;
collectionsRef.child(this.collectionRef['.key']).child("plants").push(this.newPlant);