Home

Issue: 2114

Problem with rendering raw HTML

[issue link]

(Emitted value instead of an instance of Error)
Error compiling template:

{{{ rawHTML }}}
  • invalid expression: {{{ rawHTML }}}

@ ./node_modules/babel-loader/lib?{“babelrc”:false,“cacheDirectory”:true,“presets”:…
@ ./pages/…
@ ./.nuxt/router.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=3000&path=/__webpack_hmr ./.nuxt/client.js

<template>
  <div>
    {{{ rawHTML }}}
  </div>
</template>
<script>
export default {
  data () {
    return {
      rawHTML: '<span>hello</span>'
    }
  }
}
</script>
This question is available on Nuxt.js community (#c1874)