samedi 15 juin 2019

Why will my web app not send data to my google firebase database?

My web app using ember.js will not send data to the google firebase realtime database

I have viewed multiple tutorials and searched the web and cannot seem to find the answer to my problem. I am using ember v 3.10

actions: {

saveInvitation() {
  const email = this.get.emailAddress;

  const newInvitation = this.store.createRecord('invitation', { email });

  newInvitation.save().then(response => {
    this.set('responseMessage', `Thank you! id: ${response.get('id')}`);
    this.set('emailAddress', '');
  });

},

}

import DS from 'ember-data';

export default DS.Model.extend({

email: DS.attr('string'),

});




Aucun commentaire:

Enregistrer un commentaire