laravel - How to trade off Blade and VueJS?
阿神
阿神 2017-05-16 16:46:57
0
1
651

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 through web.php Render a home page and return JSON data through api.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:

  1. Correct usage?

  2. Why is the existing usage written like this

阿神
阿神

闭关修行中......

reply all(1)
曾经蜡笔没有小新

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!