S
S
Smuzzzzi2020-02-26 15:02:45
Laravel
Smuzzzzi, 2020-02-26 15:02:45

How to render vue component in laravel?

Tell me how to execute ssr vue component in laravel?
I registered the component in app.js and brought it to the page.
In the code, it is displayed as
<example-component></example-component>
But I need all the html code to be displayed. How to do it?
Annoying component flickering on initial page load.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Drozdov, 2020-02-26
@Smuzzzzi

You won't be able to render a JS component using PHP unless you set up the V8 PHP module, but that's a pain in the ass.
Use Nuxt, or self-written SSR on node.js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question