3 ms·
Does it incorporate well with rails?? Again I think that stimulus.js can also give a feel of an SPA like when Vue is used
by Tolexx 6y ago
Does it incorporate well with rails?? Again I think that stimulus.js can also give a feel of an SPA like when Vue is used
- imhoguy 6y agoYes. No issues with Webpacker as Vue is officially supported. In fact my quite old project is now augmented with Vue to make several micro-SPAs in interactive parts. Layout HTMLs are served the standard way with Haml. To get things faster I sometimes render data JSON objects in HTML page script tags to get rid of initial fetch - works nicely.
- pqdbr 6y agoWe do the same. The page loads with a div containing something like: `<%= content_tag :div, data: { behavior: 'vue_app', 'initial-data': { some: 'json' } %> <html spinner> <% end %>`