Hi,
Maybe this is Magento 2 heresy 😛 but thought I’d ask. I am going to develop some new frontend javascript stuff and wanted to tryout just loading alpine.js but has anyone tried just using it instead of knockout? How did it go?
I don’t have the budget to just buy the Hyva theme to see all the stuff about how they handle it. But a couple big points come to mind if you have used it:
How would the translations work (multi-language type sites)? In knockout Magento added stuff like
data-bind="i18n: 'My label'"
How would that work in alpline.js?
The other thing is loading the data from php to alpline.js any tips there?
Either way I’ll jump in and give it a shot as if this method works I’d really prefer it. JS in Magento 2 is the stuff of nightmares.
submitted by /u/kjavitz
[link] [comments]