Comments (3)
No worries. Alpine is designed to work with server-rendered apps, it doesn’t work very well with SPAs. That’s why I built Alpine AJAX, so that server-rendered apps using Alpine can still feel like a SPA.
Typically, Vue will consume JSON sent from the server. Alpine works best with HTML shipped from the server instead.
You’ll need to pair Alpine with a server-side language to build apps, what language or framework are you using on the server to build your APIs for Vue?
from alpine-ajax.
I am using Powershell pode.
I saw alpine history knew its author why made it, it consumes html totally instead of json, that is cool, that is new to me.
But that is familiar with the way I use to work, I can use alpine-ajax you built to download html template from server A, and download json from server B, and assembly data and template on client side by alpine, that is what I did before in vue1, that is faster without webpack involved. (That is why I need some time delay between after download html template, and assembly data to it).
I rather use html template with json on client side, I can get benefit from server rendering and enough flexibility, but some secure content can be html with data from server for sure, your product gives me more choice.
That is why I asked you what UI you are using. I just plan to use comprehensive UI solution for template design.
Thanks for your great help!
Thanks
Eric Xin
from alpine-ajax.
I’m going to close this issue, but feel free to reopen or create a new issue if you have any other questions.
from alpine-ajax.
Related Issues (20)
- Add support for `autofocus`
- `MissingIdError` error thrown when using `x-target.replace` without an ID HOT 2
- Calling $ajax from code outside of Alpine.js HOT 5
- Use ajax:success to preload assets (js) HOT 3
- Could not find a declaration file for module '@imacrayon/alpine-ajax' HOT 3
- Any way to make incoming html replace the innerHTML of target instead of the whole target? HOT 3
- Uncaught (in promise) Missing Target: #[object HTMLButtonElement] was not found in the current document. HOT 5
- SSE and websockets support HOT 4
- Using x-morph, new Alpine components don't initialize HOT 5
- Apply different merge strategy per target HOT 4
- Polling support? HOT 2
- Dynamically assigning a value for x-target not working, but works if assigning it statically. HOT 4
- Filterable content + infinite scroll: how to set x-merge attribute HOT 3
- v.0.6.0 broke the usual x-target behavior HOT 8
- x-target response code modifiers HOT 2
- Question: Fetch and headers HOT 2
- Global event listeners HOT 4
- x-sync deletes div if no matching id in response HOT 1
- Redirect on successful form submission HOT 8
- Website examples are currently not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-ajax.