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)
- Document x-alpine-request header
- Make a GitHub Action build step
- Title and meta tags don't updated HOT 3
- Can't self target on `<form>` when it has `x-merge` HOT 3
- `$ajax` on `<form method=GET>` send formData instead of queryParams HOT 6
- Question on passing CSRF tags for Django HOT 1
- [BUG] x-merge=prepend,append,update does not seem to work HOT 3
- x-ref replace x-target HOT 15
- Bug when target is a tr
- TypeError in latest version HOT 2
- Able to set `enctype` to application/x-www-form-urlencoded HOT 1
- 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 2
- Uncaught (in promise) Missing Target: #[object HTMLButtonElement] was not found in the current document. HOT 5
- SSE and websockets support HOT 3
- Using x-morph, new Alpine components don't initialize 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.