In my Angular Typescript file, I have 2 functions data and lists. I am trying to pass variable windows from function data to function lists.
I am getting Cannot find name 'back'. Did you mean the instance member 'this.lists'?ts(2663) error when trying to call function lists
UPDATE
If I use this.list, When I console.log(windows), it gives undefined
data(less: Mark, quick: HTMLTableDataCellElement) {
const { a,b,c } = less;
const windows = quick.innerText;
lists(windows); ------>>>>> Cannot find name 'lists'. Did you mean the instance member 'this.lists'
this.value.newLevel({a, b, c windows}).subscribe(data => {
this.processView(data);
})
}
lists(windows){
console.log(windows) ---> If I use this.lists the value is undefined
}
this.lists? What happens if you try that?this.list, When Iconsole.log(windows), it givesundefinedthis.listsyou are gettingundefinedbecausequick.innerTextisundefined