Y
Hacker News
new
|
ask
|
show
|
jobs
by
pietz
841 days ago
Can it do something similar to hx-trigger="load"?
1 comments
imacrayon
841 days ago
Yeah, 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/
link
pietz
841 days ago
Interesting. Some of the concepts work quite beautifully. For the advanced feature, I often prefer HTMX. In any case, a really cool project! Congrats.
link