This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add eventHub to your app.js file: | |
Vue.prototype.$eventHub = new Vue(); | |
In your controller: | |
Generate a new resource-class (pagination metadata is included in the response) | |
https://laravel.com/docs/5.5/eloquent-resources | |
How to use the child-component in your vue-file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<buttondropdown> | |
<span slot="name">mer</span> | |
<a href="#" class="dropdown-item"> | |
Dropdown item | |
</a> | |
<a class="dropdown-item"> | |
Other dropdown item | |
</a> | |
<a href="#" class="dropdown-item is-active"> | |
Active dropdown item |
NewerOlder