<div class="my-element">
<h1>{{ content.title }}</h1>
<p :style="textStyle">I am a custom element !</p>
</div>
Source:
However, when I run this code and open my Editor DEV with the Chrome inspector open. It said this error: wwElement.vue?a729:82 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘title’)
How can I solve this problem?
Also, how can I use this setting value to set this size attribute value? <input type="text" class="sample" size="{{ content.title }}">
For the style, you should define a Vue computed returning the style you want to apply to your text. You can take a look at our own components to have example, everything is open source.