c
c
clear
Search…
Using .vue files
To use a .vue file from clear follow these steps:
  • Copy the required .vue file from clear to "resources/assets/js/components" directory.
  • Also copy the necessary css and js files to their respective folders.
  • Then register the component in the "resources/assets/js/app.js" file.
eg:
1
var app = new Vue({
2
mixins: [require('spark')],
3
components: {
4
'invoice': require('./components/clear.vue')
5
}
6
});
Copied!
  • Then use the component in any of the blade files by using the component tag
1
<invoice></invoice>
Copied!
Note:
  • The links to the vendors css files and images should be adjusted to the new directory structure.
Last modified 1yr ago
Copy link