How to set InnerText with directive in SSR Vue/Nuxt
问题 I want to port my vue directive to also render server side. client side: mydirective(el,binding,vnode){ el.innerText = vnode.context.$data.points } What i have working so far in nuxt.config.js: render: { bundleRenderer: { directives: { mydirective(node, binding){ var points = node.context.$data.points //works node.data.style = [{backgroundColor: 'green'}] //works node.data.innerText = points //NOT working node.data.textContent = points //NOT working } I cant find the element reference. i used