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

Dynamic components with v-component #468

Closed
multimeric opened this issue Oct 7, 2014 · 2 comments
Closed

Dynamic components with v-component #468

multimeric opened this issue Oct 7, 2014 · 2 comments

Comments

@multimeric
Copy link

I've been trying out the new v-component dynamic binding, but it doesn't seem to work at all. Is there some change to functionality that wasn't mentioned in the changelog?

http://jsfiddle.net/g7vqujzy/

When you type 'test' into the textbox, Vue recognizes it as a correct component name, but it doesn't change the v-component binding at all.

@yyx990803
Copy link
Member

Sorry, this is indeed a bug. The directive skips setting up a watcher with a falsy initial value... if you give currentView a truthy initial value it will work. In the meanwhile it's been fixed in the next branch.

@multimeric
Copy link
Author

Thank you for looking into it!

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