So, I've been working with Vue code and HTML recently.
Take a look at this example:
Vue.component('area-selectors-box', {
template: `
<div class="area-selectors-box">
<area-selector v-for="(select, index) in selects" :select="select" :key="index"></area-selector>
</div>
`,
props:['selects']
});
When I inspect the page source, I notice the v-bind:selects="selects"
part, which I believe is not compliant with standards.
Other components have similar issues with object properties, like:
Vue.component('area-option', {
template: `<option :area="area" :value="area.term_id">{{area.name}}<slot></slot></option>`
,props: ['area']
});
This results in output like:
<option area="[object Object]" value="82">Europa</option>
which is not ideal.
Does anyone know how I can bind these properties without them displaying as attributes in the DOM?