0👍
How about something like this:
<template>
<div v-if="showRawCss">
{{ rawCass }}
</div>
<div v-else :style={rawCss}>
<div class="some-class">
some box to have the styles applied to.
</div>
</div>
</template>
<script>
export default {
name: 'SomeName',
data() {
return {
rawCss: `
border: 1px solid red;
color: green;
`
}
},
}
</script>
- [Vuejs]-Update not working using vuejs3 and json it gives empty for the course fields
- [Vuejs]-Logout am I missing something?
Source:stackexchange.com