1👍
Most probably this
in the context of handle
method is something else … not your Ionic Page. You can console.log(this)
and see what it actually is.
If you actually need to use the variables logic from your page you can use the JS method apply. It will basically substitute the context with the one you need.
options: {
onClick: this.handle.apply(this)
}
See more information here https://www.w3schools.com/js/js_function_apply.asp
Source:stackexchange.com