Bagmaz
503
1
Vue

Laravel 5.7 Vue js .default

Posted 5 months ago by Bagmaz

In Laravel 5.7

Vue.component('example-component', require('./components/ExampleComponent.vue').default);

What is ".default" ?

Vue.component('waiting', require('./components/Waiting'));

When I use component without .default the component doesn't work.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.