I'm just starting out with angualar and wanted to push data into Firebase Database in angular , currently using post for that but some random data is getting appended into the database.
The code is as follows:
Angular was giving error when not specifying the key , so gave 'value'
this.http.post('https://farmio-3lbue-default-random-rtdb.firebaseio.com/products.json' , { 'value' : 'Carrot'}).subscribe(res=>{
console.log(res , 'post')
}, error=> console.log(error))
want to add as the first three items.
PS : data is getting added and getting successful response but is not working as expected
