[Vuejs]-IS there a way to edit External Vue.js plugins from inside the component file that imports it?

0👍

You can’t edit the template of the vue-chartjs component. Because of the extending, all methods, props etc. will get merged. If some props or methods are duplicated, Vue’s merge strategy will use your local ones, instead of the ones in the base class.

However Vue has no merge strategy for templates. So you could only completely overwrite the template. Check the git repo of vue-chartjs to see the template syntax, as some props and ids are required. And then you can replace it in your base component.

Leave a comment