How can I access Vue data() from a jQuery function?


Screen Shot 2021-09-21 at 11.56.36 AM

In the picture above I am trying to access the Connection variable in a jQuery function I set in mounted(). However “this” refers to the button I am adding the eventListener to and not the Vue page itself. How can I access this.connection from the jQuery function?