D
D
Dastan2017-04-18 05:39:26
Vue.js
Dastan, 2017-04-18 05:39:26

Vuejs in a full stack project. Does SSR interfere with components?

I want to implement vuejs on a working online store. For products to request json data during pagination and redraw product cards. It seems to me This is faster than loading the html string and inserting it with append. But it is important to me, the primary generation on the server. Is it possible for Vue not to touch ready-made data, but to work later?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2017-04-18
@Fragster

once upon a time, I did a terrible thing - filled inline json for js output using php on the server directly in the given index.php
And then I came to what is now called pjax (though without the history api everything was by hash links).
It seems to me that getting rid of the "double" rendering will not work, either vue on the client, or the server side. Well, either server side with vue (but then re interactivity - the strongest thing in vue - will be out of business) :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question