S
S
shasoft2019-02-07 09:48:09
JavaScript
shasoft, 2019-02-07 09:48:09

How to use Vue for multipage sites?

I want to use Vue not for a SPA application, but for a multi-page site to create separate interactive elements on it. For example, in HTML (namely, in the HTML of the page, and not in the template application!) I write like this

<v-button>Кнопка на Vue</v-button>
<h1>Заголовок</h1>
<v-button>Кнопка 2 на Vue</v-button>

I can't figure out how to do this

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
shmatuan, 2019-02-07
@shasoft

In addition to the above example: https://codepen.io/andreysh/pen/XOzPMW

R
Roman, 2019-02-07
@roman94

For each page you create a separate application, on each page you include the corresponding js file

D
Dima Polos, 2019-02-07
@dimovich85

I think nuxt.js will do (ssr):
https://youtu.be/HSbj0dKErtY

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question