I have made simple CRUD program here.
But on click of delete (here i am trying to delete first record of model) it is not deleting any record,it is throwing error
Uncaught TypeError: Object function () {..} has no method 'deleteRecord'
Can anyone help me to solve this issue i am struggling on this issue from last 2 days? I have posted my code here.
I have edited my fiddle to add functionality of create record (here) It is adding blank records in table. Can anyone tell me how to add/create record in this case?
savecontact: function(){
App.Person.createRecord({
fname: this.get('firstName'),
lname: this.get('lastName'),
contactype: 1
});
this.get('store').commit();
},