I use angular2-highcharts and I want to call a component method in a local function but I don\'t know how it could be possible.
Could you help me ? A plunker examp
To have access to the informations that the click event returns and also have access to your component methods you can do something like this:
plotOptions: {
series: {
turboThreshold:3000,
cursor: 'pointer',
point: {
events: {
click: function(e){
const p = e.point
this.myComponentMethod(p.category,p.series.name);
}.bind(this)
}
}
}
},
I hope this will help.