Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Ember CreateRecord

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles