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

v-el not working in some cases with script tags #2681

Closed
GuillaumeLeclerc opened this issue Apr 16, 2016 · 2 comments
Closed

v-el not working in some cases with script tags #2681

GuillaumeLeclerc opened this issue Apr 16, 2016 · 2 comments

Comments

@GuillaumeLeclerc
Copy link

Vue.js version

1.0.21

Reproduction Link

http://www.webpackbin.com/4kjH1Xoy-

Steps to reproduce

append a v-el:titi to a script tag (only in some configurations, sometimes is work)

What is Expected?

this.$els.titi is defined

What is actually happening?

this.$els.titi is undefined

@simplesmiler
Copy link
Member

JSON LD is better handled with a directive: https://jsfiddle.net/simplesmiler/6ohn7a44/4/

@GuillaumeLeclerc
Copy link
Author

Maybe directive works better but in my opinion it's semantically more correct to do a component in this case. Since component structure should reflect the DOM structure.

Apart from this debatable choice this is still a bug.

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

No branches or pull requests

2 participants