this.deleteValue = {
LanguageId : '',
LanguageName : '',
LongName : '',
CreatedBy : '',
UpdatedBy : '',
CreatedDate : '',
UpdateDate : '',
IsDeleted : ''
}
I have initialized a variable called "deleteValue" in my component and assigned a value to it within one of my functions.
beginDel(delValue){
this.deleteValue = new language(delValue.LanguageId, delValue.LanguageName, delValue.LongName, delValue.CreatedBy, delValue.UpdatedBy,delValue.CreatedDate,delValue.UpdateDate, delValue.IsDeleted);
console.log(this.deleteValue);
}
However, when I try to access the deleteValue variable in another function, it is showing up as an empty object.
recordDel(){
console.log(this.deleteValue);
}
I suspect that there might be an issue with scoping, but I am unable to pinpoint the exact problem.