T
T
tantumus212021-03-16 11:31:36
Express.js
tantumus21, 2021-03-16 11:31:36

What is the difference between pages and views?

The question is in the title. I often notice in multi-page Vue applications that the components of certain routes are added either to the pages directory or to the views. I did not notice any regularity in the naming of such directories by one name or another. A matter of taste?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-03-16
@yarkov Vue.js

A matter of taste?

Yes. If we are talking about Nuxt, then it is customary to add up in pages.
https://nuxtjs.org/docs/2.x/directory-structure/pages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question