I
I
Ilya Bobkov2019-06-07 07:53:59
Vue.js
Ilya Bobkov, 2019-06-07 07:53:59

Is it possible to render a vue component with a get request on the server?

Greetings!
There is a vue component that displays data from the database.
Is it possible to render this component (SSR) with ready-made data by getting it via axios GET request in the component itself? Or can this data be somehow passed to the component and then rendered?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nvdfxx, 2019-06-07
@nvdfxx

nuxt and vue-ssr work like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question