I have been practicing programming uibuilder
with vue
& bootstrapVue
. I have worked up a database manipulation program following an excellent tutorial and I can get data through the network with a vue method
using async
and fetch()
.
However, what I actually want to do is get the data from Node-red. I have achieved this by sending a msg
to Node-red with uibuilder.send
and updating vue data
properties when the return msg
is identified by uibuilder.onChange
in the mounted
section of the vue
app.
The question is; is there any other way of getting a msg
object into the vue
app other than through the onChange
event in mounted
? I have looked at the exposed methods and apart from uibuilder.send
have not been able to get anything out of them when used in the vue methods
or watch
sections.
I would point out that I am pretty new at Javascript & vue so I am probably missing something that is obvious. If so, if someone would point me in the direction of an explanation I would be most grateful.