taoeffect / vue-script2

Standardized, designer-friendly <script> behavior for your Single Page App
171 stars 15 forks source link

Vue-Script2 for Ld+Json #18

Closed mazipan closed 6 years ago

mazipan commented 6 years ago

I use this for produce LD+JSON string like this:

<script2
      type="application/ld+json"
      v-text="jsonLdProduct">
</script2>

but printed as

<script type="text/javascript">
         {string: "string"}
</script>

Is there any way to set script type ?

mazipan commented 6 years ago

So I decide to move to usual script

<script
      type="application/ld+json"
      v-text="jsonLdProduct">
</script>