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

fail to resolve custom directive on component #1442

Closed
TerenceZ opened this issue Oct 19, 2015 · 2 comments
Closed

fail to resolve custom directive on component #1442

TerenceZ opened this issue Oct 19, 2015 · 2 comments
Labels

Comments

@TerenceZ
Copy link

<comp v-custom-directive></comp>

As above, if we apply a custom directive on a component, then vue will complain the custom directive not found because the directive is resolved on the component's options, not its context.

Here is an online example. An error message is logged in the console.

Test version: 1.0.0-beta.4

@posva
Copy link
Member

posva commented Oct 19, 2015

I found this problem yesterday too. Not sure if this is intended or not

@karevn
Copy link

karevn commented Oct 19, 2015

It's by design. #1297

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

No branches or pull requests

4 participants