J
J
jtag2017-05-28 12:46:10
css
jtag, 2017-05-28 12:46:10

How to change html structure using vue.js?

You need to release a one-page SPA site, there will be a sidebar on the left, content on the right:
625f86f022ea4e82b13271c6a585d916.png
When you click on different elements of the sidebar, the content on the right will change, there will be graphics in one content, and a set of numerical parameters in the third table. I have a bad idea how to implement this with vue.js? Maybe the html structure needs to be changed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2017-05-28
@msa6886

You would do well to learn Vue to get started, at least a little.
In short,
install vue-router .
links in the sidebar - router-link, content - router-view.
There are a lot of tutorials and code examples on the web.
As an alternative - just toggle the component in the content block. But this is no longer a SPA, but some tabs will turn out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question