Why not ?
It depends on where you declare the x-data.
For example if you can add x-data to the layout or at least to the parent tag of the page, it could probably work.
When I have a lookup table I currently have a modal inside an object, that way I have full control and I can have a search and have pagination. All works just fine. And I use axios js to return the data.
However, would alpine js x-data also load a full page in a similar way, meaning to have a search and maintain pagination? Or is x-data only for simple showing of some data?
The examples seem to be always in a div element which wouldn't be full page?
@jlrdw Well ... not really tried with a look up table.
But in an application, I needed to have reactive properties (user ids for connected users via a presence channel) in the whole website. So I tried to declare x-data directly in the template blade file. This allows me to handle these reactive properties everywhere I need them in all pages.
So the x-data is declared in one file (template) and I use the reactive properties in some other files (views).
It works fine.
Please or to participate in this conversation.