vendredi 21 avril 2017

How to commit information to the server with Vue?

I am not well versed in javascript/web programming, so pardon me if it sounds trivial.

I am using Vue to define my frontend. I also have a server that provides a REST interface. This REST interface provides a resource, say /users/. When in Vue I perform an operation that adds a user, I modify the Vue ViewModel, but that is local to the browser and nothing has been persisted to the backend yet.

This last step is what I don't understand. What is the best practice and intended pattern to persist the new user to the backend with vue?




Aucun commentaire:

Enregistrer un commentaire