Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229726

Cannot set property 'id' of null

$
0
0

Also, try this.firebaseData.getBillDetail(this.navParams.get('billId'))
.once("value", function(snapshot) {
this.currentBill = snapshot.val();
this.currentBill.id = snapshot.key;
}

snapshot isn't wrapped in your original code, and using once instead of on might help out. Not giving everything extremely similar names would totally help too...it's like a mineField!!


Viewing all articles
Browse latest Browse all 229726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>