dimanche 1 octobre 2017

Ember Js Create record with no data

Hi this is a simple question but I was wondering I've got a form in ember and click the submit button it would essentially do this:

var materialobject = this.store.createRecord('material',{
     title: this.get('model.title'),
     description: this.get('model.description'),
});
material.object.save();

I was wondering if there is no data in these fields would this add an entry into my database in firebase?




Aucun commentaire:

Enregistrer un commentaire