Skip to content

Commit

Permalink
added missing default call for Vue ExampleComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Ludwig committed Aug 12, 2019
1 parent 152fe42 commit 5aec24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ By default, fresh Laravel applications contain an `ExampleComponent.vue` Vue com

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

To use the component in your application, you may drop it into one of your HTML templates. For example, after running the `make:auth` Artisan command to scaffold your application's authentication and registration screens, you could drop the component into the `home.blade.php` Blade template:
Expand Down

0 comments on commit 5aec24d

Please sign in to comment.