vueuse / vueuse-vue2-example

VueUse + Vue 2 + Vue CLI working example
43 stars 16 forks source link

Not a Vue2 example #2

Closed emahuni closed 4 years ago

emahuni commented 4 years ago

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

antfu commented 4 years ago

What do you mean "not a Vue2 example"?

emahuni commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

emahuni commented 4 years ago

?

antfu commented 4 years ago

!