Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Use 'x-template' in .vue file can not get the <script type="text/x-template"> tag in created() #31

Open
laomao800 opened this issue Aug 22, 2018 · 0 comments · May be fixed by #32

Comments

@laomao800
Copy link

Reproduce:

https://codesandbox.io/s/6xk7rp0o33

When use the <script type="text/x-template"> in .vue file:

<template>
  <div id="app">
    <vuep template="#demo" />
    <script v-pre type="text/x-template" id="demo">
      <template>
        <div>hello {{ name }}</div>
      </template>
      <script>
        module.exports = {
          data() {
            return {
              name: 'vuep'
            }
          }
        }
      </script>
    </script>
  </div>
</template>

// ...

Will get this error:

error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant