@Vishwajit_Kolekar wrote:
I am creating record with createRecord() method . after save(). current template dose not show new value.
here is my code : actions: { addLineItems(line_item) { var item = this.get(‘model’);
var item = this.store.createRecord('invoice-line-item'); item.save(); this.store.push(item);
},
remove: function (line_item){ // console.log(line_item); // line_item.deleteRecord(); // line_item.save(); var item = this.get(‘model’) item.deleteRecord(line_item); }
Posts: 1
Participants: 1