Warm tip: This article is reproduced from serverfault.com, please click

Highchart maps / Highmaps update vue data properties on clicking country

发布于 2020-11-30 08:20:05

The selected country/state name can be accessed in Highchart maps using this fiddle

But Is there a way to access the vue data properties within event scope?

Basically, If we have a data property in vue as selectedCountry which can be displayed as {{ selectedCountry }}, so is it possible to get and update it using this.selectedCountry = this.name ?

Questioner
Audi
Viewed
0
Audi 2020-11-30 17:11:22

Fixed it using arrow functions 😑