3 ms·
Can this stack easily handle 2-way data bindings on the frontend? For example, when you update a text input, the title of the text input changes?
by reidjs 5y ago
Can this stack easily handle 2-way data bindings on the frontend? For example, when you update a text input, the title of the text input changes?
- czue 5y agoAlpine should be able to do this by itself.
- mejutoco 5y agoYes. You give ids to elements and the html indicates which id to replace with which content. You can even replace ids in other sections (might get complex quickly, but it works). https://htmx.org/attributes/hx-swap-oob/ https://htmx.org/attributes/hx-swap-oob/ Source: I used this to implement my https://fromzerotofullstack.com https://fromzerotofullstack.com website.
- recursivedoubts 5y agopurely front end use cases like this would be handled by alpine syncing state with the back end would be handled by htmx