I have 2 functions in my component. onElementClick is binded to element in HTML. So every time I click on that element, I get:
this.showHalo is not a function
Why is this a case?
showHalo(view, opt) {
// Code
}
onElementClick(view) {
// Code
function click() {
this.showHalo(view, { animation: true });
}
}
I even tried this, but its the same thing.
myFunc(){
console.log("TEST");
}
onElementClick(view) {
self = this;
self.myFunc();
}