I would like to add VueJS to my multi-page-application based on Laravel.
Well - Vue offers a lot, but I would really love to continue using Laravel's routing mechanism and only add VueJS to enhance my project.
So my question is: As Laravel comes with app.js including a basic Vue-scaffolding, I would not be able to add different behaviors for different pages:
resources/assets/js/app.js:
require('./bootstrap');
window.Vue = require('vue');
Vue.component('example-component', require('./components/ExampleComponent.vue'));
const app = new Vue({
el: '#app'
});
So am I right if I would add just new .js files for every blade-view? E.g. home.js, register.js and include them in my views?