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

working with Vuejs directive with modifiers got an error of undefined property #2569

Closed
mafeijam opened this issue Oct 6, 2016 · 3 comments

Comments

@mafeijam
Copy link

mafeijam commented Oct 6, 2016

my code is something like that
div(v-my-directive.foo)
it looks like the pug compiler treating it as an object, so got error...
i tired to wrap it with quotes like this
div('v-my-directive.foo'), doesn't work at all

any advice please??

@psi-4ward
Copy link

Did you try div("v-my-directive.foo"="") ?

@mafeijam
Copy link
Author

mafeijam commented Oct 7, 2016

thanks, that works now!, just need to give it an empty value, no need to wrap the directive
div(v-my-directive.foo="") like so.

@justnowanna
Copy link

@mafeijam thanks, that works to me.

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

4 participants