These are chat archives for jaybedeau/Firebase-Beginner

9th
Aug 2017
James
@qu1ckdry
Aug 09 2017 12:43
Hi, I'd like to be able to add a new record to firebase and then navigate to its page... The trouble is within the push callback I don't have reference to the $router property. Here's my code:
ref.push({}).then(function (item) { console.log("Key: " + item.key + " has been added to the Firebase") return item.key }).then(function (key){ this.$router.push("/item/" + key) }).catch(function (error){ console.log("Error: " + error) })
I'm not sure how to get around this?
Joe
@foxjazz
Aug 09 2017 21:42
@avinashs95 don't use angular-seed use the cli