I am facing an issue while trying to insert a new record into my Firebase database using AngularFire2. Unfortunately, the operation doesn't appear to be successful.
The permissions on my Firebase project allow anyone to make changes to its data content.
To address this challenge, I have implemented the following method in my component:
add(testInputElement: HTMLInputElement) {
const test = courseInputElement.value;
this.angularfirestore.collection('test/')
.add({ value: test })
.then(console.log)
.catch(console.log);
}
Upon calling this method, no data is added to Firebase and there are no outputs in the console log. Can you help me identify what might be going wrong here?