3 ms·
Can it do something similar to hx-trigger="load"?
by pietz 3y ago
Can it do something similar to hx-trigger="load"?
- imacrayon 3y agoYeah, Alpine components have `x-init` that works just like the load trigger. You can fire off an AJAX request inside that directive, there's an example here: https://alpine-ajax.js.org/examples/lazy-load/ https://alpine-ajax.js.org/examples/lazy-load/
- pietz 3y agoInteresting. Some of the concepts work quite beautifully. For the advanced feature, I often prefer HTMX. In any case, a really cool project! Congrats.