0👍
Vue components are not designed for this. If you need to pass data to another component use events or vuex for state management.
export default {
Create() {
axios
.get("http://www.mustavi.com/TotalVehicles/?param1=2020-09-04")
.then((res) => {
this.$emit('carcount', {
value: res.data.data.carCount,
name: 'Car'
});
});
},
};
Source:stackexchange.com