Within my Angular Typescript file, I am working with two functions named data
and lists
. My goal is to pass the variable windows
from the function data to the function lists.
However, when attempting to call the function lists, I encounter an error:
Cannot find name 'back'. Did you mean the instance member 'this.lists'?ts(2663)
UPDATE
After using this.list
, the console logging of windows
results in 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
}