2
I have the following element in . Blade (intended to interact with Vue not with Laravel):
<div id="app">
{{ message }}
</div>
To try to activate Vue:
window.Vue = require('vue');
var app = new Vue({
el: '#app',
data: {
seen: true
}
})
And I get the following error from the Laravel:
Use of Undefined Constant message - assumed 'message' (this will throw an Error in a Future version of PHP) (View: C: xampp htdocs Laravel Game Resources views home.blade.php)
This error is due to the Blade syntax {{ message }}
, well I’m not getting to think about how to combine. Blade with Vue, apparently the Laravel offers a support for this, but I could not figure out how it works.
The doubt is:
How to use Vue.js in a . Larable application view ?