class A {
@Input()
input: boolean
test() {
const self = this // error1
let currentSeries: Highcharts.Series
return {
mouseOver() {
currentSeries = this // error2
if (!self.input) {
return
}
// ...
},
mouseOut() {
console.log(currentSeries)
},
}
}
}
I don't think it can be implemented by arrow function or bind.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too