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

Questions on usage. #2

Closed
lauhakari opened this issue Sep 22, 2017 · 2 comments
Closed

Questions on usage. #2

lauhakari opened this issue Sep 22, 2017 · 2 comments

Comments

@lauhakari
Copy link

Hey, first of - great plugin! Did exactly what I needed and nothing more.

I have a few questions on usage though, as I got some weird cases in some situations.
Firstly: using text="" doesn't work if you pass data to it. You need to use :text="" , maybe this could be made clear in the docs :)

Second: I encountered this error in some cases with length="250" .
[Vue warn]: Invalid prop: type check failed for prop "length". Expected Number, got String.
Really pulled my hair on this one as it hade worked just the day before. Ended up trying :length="250" and it worked fine.

So maybe they all should be added as :propName="" instead of propName=""

@tagmetag
Copy link

Are you use SSR or Nuxt, right

@kavalcante
Copy link
Owner

kavalcante commented Oct 10, 2017

Hello @lauhakari thanks for your issue.

First: This is weird, because it's should work if you just do text="lorem ipsum", because it's a valid String, if is possible you can reproduce the error?

Second: Thanks for this, in Attributes I put that it's only accept Number, but in Usage I'm using a String, I will fix that in the docs!

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

3 participants