<div id="app">
<h1 :style="styleObject">Hello Vue</h1>
</div>
const { createApp } = Vue;
createApp({
data() {
return {
styleObject: {
backgroundColor: 'black',
color: 'white'
}
}
},
}).mount('#app')
This Pen doesn't use any external CSS resources.