@track defaultRecordWith4Field = {
recId : 0,
fieldList : [
{
name:"description__c",
value :null
},{
name:"type__c",
value :null
},{
name:"property__c",
value :null
},{
name:"Direction_property__c",
value :null
}
]
};
I'm trying to modifying recId in the object declared above to add one more row I'm not getting how to do that
Trying to add new value to "recId"
handleAdd(){
console.log(object.key(this.defaultRecordWith4Field));
this.defaultRecordWith4Field.recId=this.records.length++;// I'm trying here
var newRecord = Object.assign({}, this.defaultRecordWith4Field);
this.records.push(newRecord);
console.log("this.records : " + JSON.stringify(this.records));
}