I have a canvas element that is created programmatically and I am looking to apply a reactive style to it.
canvas = document.createElement('canvas')
//Apply style
this.$refs.parentElement.appendChild(canvas)
In a typical scenario, you would use v-for and v-bind in the template, but that approach is not feasible for me. Here is an example:
<canvas :style="[someReactiveData ? { 'display': 'block' } : {}]"/>
What would be your method to achieve this?