alpine-ajax icon indicating copy to clipboard operation
alpine-ajax copied to clipboard

Integration with Alpine.js

Open lobre opened this issue 6 months ago • 1 comments

Hey, great project, i like it a lot! Especially the progressive enhancement part of it.

However, there is something that i don't think is clear when reading the website which is:

What is the advantage of Alpine Ajax being an Alpine plugin? Or said differently, what does it bring to Alpine users apart from the attributes that are familiar? Like how does it reconciliate with the state of my local Alpine "components"?

I know there is the morph strategy, but apart from that, how does it reconciliate or integrate with the Alpine js ecosystem (which is about frontend sprinkling for interactivity).

I struggle to understand how my local frontend Alpine js component relate to Alpine Ajax x-targetted ones.

I think it would be interesting to have more guidance and examples on the website that mix regular Alpine js behavior and Alpine Ajax, to clearly understand the role of the server as it brings a whole new dimension to Alpine js.

I don't know if my concern is clear, and sorry if it is not ^^. The Alpine Ajax model is still new to me and I try to grasp the concepts.

lobre avatar Aug 10 '24 07:08 lobre