Level 18
Never mind. I have figured it out on my own.
Summer Sale! All accounts are 50% off this week.
How can i create Vue instance for specific Blade templates. I am not interested in making components and registering them to app.js because if i write something in app.js
blade.php
var app1 = new Vue({
el: '#app1',
data: {
message: 'Life is good. Seems like it is working'
}
})
var app2 = new Vue({
el: '#app-2',
data: {
message: 'You loaded this page on ' + new Date().toLocaleString()
}
})
i just want simple Vue instance for a specific blade template
Please or to participate in this conversation.