Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Blade/Mustache templating mixing Laravel and Vue.Js

Tags:

laravel

vue.js

So I'm trying to build an application with both Laravel and VueJs but I'm stuck at one point.

Is it possible to use VueJs mustache templating (which is {{exemple}} ) without launching a Laravel error since laravel used it too like {{$exemple}}?

like image 725
Baldráni Avatar asked Oct 10 '16 10:10

Baldráni


1 Answers

I think you can do what you're after using the @{{ example }} syntax that Blade allows us to use when using a JS framework inside Laravel.

Hope this helps! :)

like image 61
Andy Holmes Avatar answered Nov 09 '22 11:11

Andy Holmes