3👍
✅
I had similar problem. I solved it by wrapping everything with nextTick
self.$nextTick(() => {
var ctxChart = self.$refs.myChart.getContext('2d')
...
});
- [Vuejs]-How to fetch content for a component on click of a button outside this component with Vuejs?
Source:stackexchange.com