Hey there! I'm currently facing an issue while trying to pass an object from one page to another and store it in the object on the second page. I'm encountering an error with EsLint.
let accountDetails:any={
name:this.userAccount.name,
phoneNumber:this.userAccount.phoneNumber,
mobileNumber:this.userAccount.owner.mobileNumber,
address:this.userAccount.address.fullAddress,
ownerName:this.userAccount.owner.fullName,
userEmail:this.userAccount.email,
createdBy:this.userAccount.createdBy.fullName,
sourceName:this.userAccount.source.sourceName,
latitude:this.userAccount.address.latitude,
longitude:this.userAccount.address.longitude,
state:this.userAccount.address.state.location
}
The above code snippet shows how I am trying to store the data. This issue seems to be related to TypeScript.
I'm curious to know why this is happening and what could be the best solution to fix it. Any ideas?