Open francissebin-2hats opened 1 year ago
It uses a mixin to inject the component into your app. Follow the example in the readme.
Go to your app.js
or wherever you mount your Vue app and import it there, then call app.use
:
import VueDiff from 'vue-diff';
const app = createApp({ /* ... */ }).use(VueDiff, { componentName: 'VueDiff' });
Then you can use it anywhere in your Vue app without needing to import it or declare it in your components: { ... }
object.
Thanks in advance.
I got a Vue component(suppose ComponentX.vue) and added the following code to it. It shows [Vue warn]: Component is missing template or render function. got any solution to this?
Using Vue 3 with Inertia