has been stuck in the joint use of VueJS
and Blade
.
Normally VueJS
has already done almost all page rendering. Blade
In theory, it is enough to render one page.
But looking at the source code of everyone, Blade
and VueJS
are always used together.
Let me tell you my own thoughts:
When Vue and Blade are used together, the
page template is written in the.vue
file,laravel
mainly throughweb.php
Render a home page and return JSON data throughapi.php
for the rest of the requests.
But I’ve read a lot of Laravel
+ VueJs
The open source code doesn’t seem to be what I think. I wonder if there are any experts willing to come out and clarify my doubts?
Hope to get the answer:
Correct usage?
Why is the existing usage written like this
Most of them are for SEO...
or lazy separation...
Which one Convenient Which one to use.
That is your ideal situation, and most open source projects are completed/maintained independently by individuals.
But most Node projects are different