[Vuejs]-Dump vue file content on the webpage

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>

Leave a comment