3 ms·
Do you have any example? Even a minimal non-working PoC would make my day. I've been dying to implement Vue component responses for my projects ever since I fi
by hu3 5y ago
Do you have any example? Even a minimal non-working PoC would make my day.
I've been dying to implement Vue component responses for my projects ever since I first heard about it because I believe that this is a way to keep things mostly on the backend while still preventing JS spaghetti on the frontend.
I read about https://inertiajs.com/ https://inertiajs.com/ but it seems too overkill. I'd prefer to keep things simpler.
- benblue 5y agoFor a greenfield project I'd probably reach for Inertia.js though I don't have any experience with it aside from reading the docs. If you just want to use Vue for your rendering layer, you can can do that using a very minimal partial that renders the root element and loads the JS to mount the component. This example should get you started (Vue 2 syntax): https://gist.github.com/yourboyblue/834aac9c427a97037dd49694a25f8199 https://gist.github.com/yourboyblue/834aac9c427a97037dd49694...
- Ocha 5y agoYou can see working version on app.mailsnag.com. I will try to make a sample project out of it and put on GitHub tomorrow and share the link.
- dane-pgp 5y agoAny progress you can share on that sample project?