Currently, I am integrating Monaco Editor with Vue.js and facing some confusion regarding how Monaco is being instantiated within the Vue component: 1) In my data() method, I have defined an editorEx object to be used for this purpose, like so:
data() {
editorEx: {}
}
2) I have also created an initMonaco function to initialize Monaco when the Vue component is mounted. This function calls the constructor 'monaco.editor.create(...)' as shown below:
initMonaco() {
this.editor = monaco.editor.create(...)
}
Question: I'm wondering about the whereabouts of the 'this.editor' variable. It seems to work seamlessly even though I never explicitly declared it in the component or Vuex.