A
A
Alexey Markov2019-03-02 17:41:02
Vue.js
Alexey Markov, 2019-03-02 17:41:02

What is the correct way to use vue when creating an admin panel?

Good day.

At the moment I'm learning vue.js and creating an admin panel for the site.
The question is how to properly organize the structure and interaction of the frontend with the server.

Spent a day looking at tutorials and tutorials, but I'm not entirely sure if I learned it correctly.

So we break all the details of our admin panel into blocks of components, for which we create files and folders corresponding to the structure.
By analogy with templates, we create folders for entities with the corresponding actions (add, edit, delete etc).

Data arrives in the components upon completion of their installation by ajax request to the actions of the corresponding controllers.
Similarly, the component has methods for updating and deleting (ajax request).

— — — — — — — — —
Perhaps there are guides on the Internet that I missed, or I make a mistake in the very basics, in any case I will be grateful for any information.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question