ssleptsov / ninja-keys

Keyboard shortcuts interface for your website. Working with static HTML, Vanilla JS, Vue, React, Svelte.
https://ninja-keys-demo.vercel.app/
MIT License
1.65k stars 60 forks source link

Vue2 Example #12

Closed viglucci closed 2 years ago

viglucci commented 2 years ago

Thanks for creating this package! Although I am having some trouble integrating with Vue2, it seems very useful.

I understand that you've created this package mainly to work with several of your own Vue projects, so I was wondering if you have a working example using Vue2? I am not able to use Vue3 just yet, so hoping to get this working with Vue2.

The Vue example seems to be using Vue3, and the :data with Vue2 doesn't seem to behave the same way (results in [[object Object], ...] serialized on the DOM element.

Thanks

ssleptsov commented 2 years ago

Hey @viglucci Thank you! Yes, it was already on one issue. I forget to add a link for codesandbox example.

Updated readme, but also here is a link with example: https://codesandbox.io/s/ninja-keys-demo-vue2-b129z

viglucci commented 2 years ago

@ssleptsov thanks! Works great!