I am trying to use Vue JS on my Laravel 5 application, it gives me the blank page when I used v-
new Vue({
el: '#vApp',
data: {
todos: [
{ text: 'Learn JavaScript' },
{ text: 'Learn Vue' },
{ text: 'Build something awesome' }
],
message: "Welcome"
},
delimiters: ["%%","%%"]
});
if I just print the message into the blade view page it works well
<div id="vApp">%% message %%</div>
When I am trying to use
<li v-for="todo in todos">
</li>
or
<input v-model="message">
it give me the blank page
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2zFkmY9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire