Answer the question
In order to leave comments, you need to log in
If I use vue js in conjunction with laravel, a variable error occurs, how to fix it?
Banal example{{ message }} (в дивах с id="app")
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
})
Answer the question
In order to leave comments, you need to log in
Or you can add @ in front of the vue variable, but that's really all perversion.
Use vue components and vue template in it, passing the necessary variables to the components via props or api.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question