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

Not a Vue2 example #2

Closed
emahuni opened this issue Oct 3, 2020 · 6 comments
Closed

Not a Vue2 example #2

emahuni opened this issue Oct 3, 2020 · 6 comments

Comments

@emahuni
Copy link

emahuni commented Oct 3, 2020

I thought this was supposed to be a Vue2 example, but it's not

@antfu
Copy link
Member

antfu commented Oct 3, 2020

What do you mean "not a Vue2 example"?

@emahuni
Copy link
Author

emahuni commented Oct 3, 2020

I mean just that. Pure Vue 2 doesn't use composition API. I've a project that is strictly Vue 2 and I was expecting normal Vue single file component code in the example and the example isn't Vue 2, but 3. Please check what I mean and correct. You rock by the way.

@emahuni
Copy link
Author

emahuni commented Oct 3, 2020

I can fiddle and write the correct syntax, but was just wondering how you'd envisioned the correct syntax as the author or maintainer since it's mentioned in the documentation that is seamless between Vue 2 and 3.

@antfu
Copy link
Member

antfu commented Oct 4, 2020

This is the example of using VueUse with Vue 2. Not "general for Vue 2".

@antfu antfu closed this as completed Oct 4, 2020
@emahuni
Copy link
Author

emahuni commented Oct 4, 2020

?

@antfu
Copy link
Member

antfu commented Oct 4, 2020

!

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