AlpineJS has a global state management system through its global variable named store. We can store a variable named total for a page loaded in the browser like this : document.addEventListener('alpine:init', () => { Alpine.store('global_data', ...

Markdown supported · ⌘↵ to post
No responses yet.